/* Der Team-Bereich. Baut auf style.css der oeffentlichen Seite auf: Farben, Tabellen und Schalter kommen von dort,
   hier steht nur, was die oeffentliche Seite nicht hat. */
:root {
  /* Diagramme: eine Reihe, eine Farbe. Hell und dunkel je eigens gewaehlt und gegen die Flaeche geprueft. */
  --series: #2258d8;
  /* Zustand "besser/schlechter" - nie allein: Daneben steht immer ein Pfeil und ein Wort. */
  --good: #11813c;
  --bad: #c9283a;
}
:root[data-theme="dark"] { --series: #5b8af5; --good: #4cc47d; --bad: #ff8590; }

.sky.panel { padding-bottom: 56px; }
.account { display: flex; align-items: center; gap: 12px; margin: 0 0 0 auto; font-weight: 600; }
.account .button { padding: 7px 14px; font-size: 14px; }

main h1 { margin: 0 0 6px; font: 800 28px/1.2 var(--display); }
.lead { max-width: 72ch; margin: 0 0 20px; color: var(--muted); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
code { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: .92em; white-space: nowrap; }
.notice.problem { border-left-color: var(--bad); }
details > summary { margin: 10px 0; color: var(--muted); font-weight: 600; cursor: pointer; }

/* Schalter und Felder */
a.pick { display: inline-block; }
.button.primary { background: var(--accent); color: #fff; }
.pick.danger { border-color: var(--bad); color: var(--bad); }
.field { width: 100%; padding: 9px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.bar .field { width: min(280px, 100%); }
nav.seg a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; }
nav.seg a[aria-current] { background: var(--accent); color: #fff; }

/* Tabellen: die Spalte mit den Schaltern am rechten Rand */
td.actions { text-align: right; }
td.actions > * { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }
td .status { margin-left: 10px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 2px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 14px; font-weight: 600; }
.confirm > summary { margin: 0; list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { display: none; }

/* Chatlog: die eigenen Zeilen des Spielers heben sich ab, der Rest ist Umfeld */
.log { white-space: normal; }
.log td { vertical-align: top; }
.log td:not(.message) { white-space: nowrap; }
.log .message { min-width: 260px; overflow-wrap: anywhere; }
.log .own { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.log .own .message { font-weight: 600; }
.log .gap td { padding-block: 4px; color: var(--muted); font-size: 13px; text-align: center; }
.part h2 small { margin-left: 10px; color: var(--muted); font: 600 14px Figtree, system-ui, sans-serif; }

/* Kennzahlen */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 8px; }
.tile { padding: 16px 18px; border-radius: 12px; background: var(--surface); }
.tile dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.tile dd { margin: 4px 0 2px; font: 800 24px/1.2 var(--display); }
.tile dd.note { margin: 0; color: var(--muted); font: 400 14px/1.4 Figtree, system-ui, sans-serif; }
.tile dd.good { color: var(--good); }
.tile dd.bad { color: var(--bad); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
.columns .part:first-child h2 { margin-top: 36px; }

/* Diagramme (team.js): duenne Marken, zurueckhaltendes Gitter, Beschriftung in Textfarbe */
.chart { position: relative; margin: 0; padding: 16px 16px 8px; border-radius: 12px; background: var(--surface); }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series); opacity: .1; }
.chart .dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--series); }
.chart .bar.dim { opacity: .45; }
.chart .value { fill: var(--ink); font-size: 13px; font-weight: 800; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .hit { fill: transparent; outline: none; }
.chart .tip { position: absolute; z-index: 1; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.chart .tip b { display: block; font-size: 15px; }

/* Datenbank: der Balken wiederholt die Zahl daneben */
.share { white-space: nowrap; }
.meter { display: inline-block; width: 120px; height: 8px; margin-right: 10px; border-radius: 4px; background: var(--line); vertical-align: middle; }
.meter i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--series); }

/* Blog-Formular */
.form { display: grid; gap: 6px; max-width: 760px; }
.form label { margin-top: 14px; font-weight: 600; }
.form textarea { min-height: 260px; font: 14px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .pair > div { display: grid; gap: 6px; }
.form .bar { margin: 20px 0 0; }
.form [readonly] { color: var(--muted); }

/* Anmeldung */
.signin { max-width: 520px; margin: 0 auto; padding: 32px; border-radius: 12px; background: var(--surface); text-align: center; }

@media (max-width: 760px) {
  .account { margin-left: 0; }
  .form .pair { grid-template-columns: 1fr; }
}
