/* Team-Seite (kern/team.js): Auslastung und Zeiten als Tabelle (je Person eine Zeile, klickbar), Tagesansicht mit Zeitleiste.
   Projektfarben f0–f7 (Flächen) und s0–s7 (Linien im Chart). Nach app.css geladen, vor todos.css. */
.f0 { fill: var(--p0); background: var(--p0); } .f1 { fill: var(--p1); background: var(--p1); } .f2 { fill: var(--p2); background: var(--p2); }
.f3 { fill: var(--p3); background: var(--p3); } .f4 { fill: var(--p4); background: var(--p4); } .f5 { fill: var(--p5); background: var(--p5); }
.f6 { fill: var(--p6); background: var(--p6); } .f7 { fill: var(--p7); background: var(--p7); }
.s0 { stroke: var(--p0); fill: var(--p0); } .s1 { stroke: var(--p1); fill: var(--p1); } .s2 { stroke: var(--p2); fill: var(--p2); }
.s3 { stroke: var(--p3); fill: var(--p3); } .s4 { stroke: var(--p4); fill: var(--p4); } .s5 { stroke: var(--p5); fill: var(--p5); }
.s6 { stroke: var(--p6); fill: var(--p6); } .s7 { stroke: var(--p7); fill: var(--p7); }

.bereich-kopf { display: flex; justify-content: flex-end; margin-bottom: var(--s1); }
.erklaerung { margin-bottom: var(--s4); font-size: 13px; color: var(--text-2); }
.erklaerung summary { cursor: pointer; color: var(--text-3); font: 400 12px var(--mono); }
.erklaerung p { margin: var(--s2) 0 0; line-height: 1.55; max-width: 70ch; }
.unterkopf { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: var(--s5) 0 var(--s3); }
.legende { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font: 400 12px var(--mono); color: var(--text-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Chart „Erledigt je Tag“ */
.chart { display: block; width: 100%; height: auto; font: 400 11px var(--mono); }
.chart .raster { stroke: var(--linie); stroke-width: 1; }
.chart .achse { fill: var(--text-3); }
.chart polyline.linie { fill: none; stroke-width: 2; stroke-linejoin: round; }

/* Tabelle: je Person eine Zeile (Knopf), Spalten ab 760 px nebeneinander, darunter gestapelt */
.tabelle { display: grid; border-top: 1px solid var(--linie); }
.t-zeile { display: grid; gap: var(--s2) var(--s5); align-items: center; width: 100%; padding: var(--s4) var(--s2); border: 0; border-bottom: 1px solid var(--linie);
  background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
.t-zeile:hover, .t-zeile:focus-visible { background: var(--flaeche); }
.t-zeile > b { font: 600 15px var(--sans); }
.t-zeile small { font: 400 12px var(--mono); color: var(--text-3); }
.t-zahl { font: 500 15px var(--mono); }
.zeit-zeile { grid-template-columns: minmax(0, 1fr) auto; }
.zeit-zeile .balken, .zeit-zeile small { grid-column: 1 / -1; }
@media (min-width: 760px) { .zeit-zeile { grid-template-columns: 180px 90px minmax(0, 1fr) auto; } .zeit-zeile small { white-space: nowrap; } .zeit-zeile .balken, .zeit-zeile small { grid-column: auto; } .zeit-zeile small { text-align: right; } }
.balken { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--flaeche-2); overflow: hidden; }
.ausl-zeile { grid-template-columns: minmax(0, 1fr) auto; } /* Name · Stand, darunter Rückstand und Zahlen */
.ausl-weg, .t-werte { grid-column: 1 / -1; }
@media (min-width: 760px) { .ausl-zeile { grid-template-columns: 180px 120px minmax(0, 1fr); } .ausl-weg { grid-column: auto; } .t-werte { grid-column: 3; } }
.ausl-weg { font-size: 13px; color: var(--text-2); }
.ausl-weg b { color: var(--text); font-weight: 600; }
.t-werte { display: flex; flex-wrap: wrap; gap: 4px var(--s4); font-size: 13px; color: var(--text-2); }
.t-wert b { font: 600 14px var(--mono); color: var(--text); }
.t-wert.rot b { color: var(--t-rot); }
.t-wert.gelb b { color: var(--t-gelb); }

/* Tagesansicht (Blatt): je Tag Kopf und maßstäbliche Zeitleiste, Skala oben */
.tage { display: grid; gap: var(--s4); }
.tag-kopf { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: 6px; font-size: 14px; }
.tag-kopf span { font: 400 13px var(--mono); color: var(--text-2); }
.tagesleiste { display: block; width: 100%; height: 16px; border-radius: 4px; background: var(--flaeche-2); }
.tagesleiste .stunde { fill: var(--linie); }
.tage-skala { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: var(--s2); }
.tage-skala text { font: 400 20px var(--mono); fill: var(--text-3); }
a.t-zeile { color: inherit; text-decoration: none; }
