/* ══════════════════════════════════════════════════════════════════
   Was nur die Gruppe hat. Die Woche selbst steht in woche.css.
   ══════════════════════════════════════════════════════════════════ */

/* ── Vorschau einer eingelesenen Woche ─────────────────────────────
   Bevor der Kader den Plan bekommt, sieht der Trainer, wie er gelesen
   wurde: eine Zeile mit Woche und Umfang, darunter die sieben Tage. */
.plan-vorschau { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.plan-vorschau__woche {
  list-style: none; margin: 0; padding: var(--s3) var(--s4);
  display: flex; flex-direction: column; gap: var(--s1);
  border: 1px solid var(--border); border-radius: var(--r-row);
  background: var(--surface-2);
}
.plan-vorschau__tag { display: grid; grid-template-columns: 2.5em 1fr; gap: var(--s2); font-size: 13px; line-height: 1.45; }
.plan-vorschau__name { font-weight: 800; color: var(--ink); }
.plan-vorschau__was  { color: var(--ink-soft); }
.plan-vorschau__hinweis { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

/* ── Mehrere Dateien auf einmal (v.35.43.0) ────────────────────────
   Je Datei eine Karte: welche Woche, welcher Name steht in der Excel,
   und für wen sie ist. Wo Firn niemanden findet, ist die Karte markiert
   — veröffentlicht wird erst, wenn jede Datei jemanden hat. */
.plan-liste { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.plan-datei {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-row);
  background: var(--surface);
}
.plan-datei.ist-offen { border-color: var(--warn); background: var(--warn-bg); }
.plan-datei.ist-kaputt { background: var(--surface-2); }
.plan-datei__kopf { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-datei__name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.plan-datei__woche { font-size: 13px; color: var(--ink-soft); }
.plan-datei__hinweis { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.plan-datei.ist-offen .plan-datei__hinweis { color: var(--warn); font-weight: 600; }

/* ── Kontakt ───────────────────────────────────────────────────────
   Eine Zeile, die nichts oeffnet (Geburtsdatum, Adresse, Notiz), sieht
   aus wie die anderen, reagiert aber nicht auf den Zeiger. */
.row--still { cursor: default; }
.row--still:hover { border-color: var(--border); }
/* Die Notiz behaelt ihre Zeilen — "Allergie: Nuesse / Notfall: …". */
#kontaktAnzeige .row__title { white-space: pre-line; }

.eltern { display: flex; flex-direction: column; gap: var(--s2); }
.eltern__karte {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-row);
  background: var(--surface-2);
}
.eltern__weg { align-self: flex-end; color: var(--danger); }

/* Ein Verteiler ohne Adressen: der Knopf steht da, sagt aber, dass es
   nichts zu schreiben gibt. */
#lnkVerteiler.is-leer { opacity: 0.5; pointer-events: none; }


/* Eine weitere Gruppe — leise am Ende der Seite (v.35.49.0). Athleten
   brauchen das selten; wer es sucht, findet es. */
.grp-weitere {
  margin: var(--s6) 0 var(--s3);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}
.grp-weitere__link {
  padding: var(--s1);
  border: 0;
  border-radius: var(--r-icon);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.grp-weitere__link:hover { color: var(--accent); }

/* Die Einladung (v.35.53.0): der kurze Link gross, darunter der Code zum
   Abtippen und bis wann; drei Wege, sie loszuschicken. */
.einladung {
  display: grid;
  gap: var(--s2);
  margin-block: var(--s3);
  padding: var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-row);
  background: var(--surface);
}
.einladung__titel {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.einladung__link {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}
.einladung__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.einladung__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}
.einladung__knoepfe .b { flex: 1 1 auto; }
.einladung__weg { justify-self: start; }

/* ── Die Farbe der Gruppe (v.35.59.0) ────────────────────────────────
   Oben auf der Seite ein Band in der Farbe der Gruppe — wer zwischen
   Kader und Familie wechselt, sieht es, bevor er einen Namen liest. */
/* Das Band über der Seite ist weg (v.35.68.0) — die Farbe steht als Punkt
   am Namen im Kopf (.appbar__title--punkt in kit.css). */
.farbwahl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s1);
}
/* Der Ring um die gewählte Farbe ist ein outline, kein Schatten — das
   Kit hält Schatten den gezogenen Karten vor. */
.farbwahl__feld {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid var(--surface);
  border-radius: var(--r-pill);
  background: var(--tint);
  outline: 1px solid var(--border);
  cursor: pointer;
}
.farbwahl__feld[aria-checked="true"] { outline: 2px solid var(--ink); }
.farbwahl__feld:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Die Liste nach Funktion (v.35.59.0) ─────────────────────────────
   Überschrift je Funktion (Trainer, Athleten) mit der Zahl rechts. */
.grp-funktion {
  display: flex;
  justify-content: space-between;
  margin: var(--s3) 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.grp-funktion:first-child { margin-top: 0; }

/* Der Verteiler in der Kopfzeile der Liste, statt als breiter Knopf
   unter dem letzten Namen. */
.grp-mail {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1) var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.grp-mail:hover { border-color: var(--ink-soft); }

/* Gruppe löschen — leise, am Ende, rot erst beim Zeigen. */
.grp-loeschen { margin: var(--s5) 0 0; text-align: center; }
.grp-loeschen__knopf:hover { color: var(--danger); }

/* ── Die Einstellungen der Gruppe (v.35.60.0) ────────────────────────
   Eine eigene Ansicht mit Zurück, darin die Karten untereinander. */
.grp-einst__titel {
  margin: var(--s2) 0 var(--s3);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
#secGruppeEinst .einladung { margin-block: 0 var(--s3); }
.grp-kalender { display: grid; gap: var(--s1); }
.grp-kalender:empty { display: none; }
.grp-kalender__zeile {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s1) 0 var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-row);
}
.grp-kalender__punkt {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--tint);
}
.grp-kalender__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-kalender-neu { display: flex; gap: var(--s2); }
.grp-kalender-neu .form-input { flex: 1; min-width: 0; }
.grp-kalender-neu .b { flex: none; }

/* ── Noch in keiner Gruppe (v.35.62.0) ──────────────────────────────
   In der Mitte statt oben an der Kante: ein Zeichen, ein Satz, zwei
   Wege als Karten — nebeneinander am Laptop, untereinander am Handy. */
.grp-leer {
  max-width: 560px;
  margin: clamp(24px, 10vh, 96px) auto 0;
  text-align: center;
}
.grp-leer__zeichen {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s4);
  display: grid;
  place-items: center;
  border-radius: var(--r-panel);
  background: var(--accent-bg);
  color: var(--accent);
}
.grp-leer__titel { margin: 0 0 var(--s2); font-size: 22px; font-weight: 800; }
.grp-leer__text { margin: 0 auto var(--s5); max-width: 420px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.grp-leer__wege { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); text-align: left; }
@media (max-width: 560px) { .grp-leer__wege { grid-template-columns: 1fr; } }
.grp-leer__weg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s3);
  row-gap: 2px;
  align-items: center;
  padding: var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.grp-leer__weg:hover { border-color: var(--accent); }
.grp-leer__weg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grp-leer__weg:disabled { opacity: .6; cursor: progress; }
.grp-leer__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
}
.grp-leer__weg--haupt { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.grp-leer__weg--haupt .grp-leer__icon { background: var(--accent); color: #fff; }
.grp-leer__wort { font-weight: 750; font-size: 15px; }
.grp-leer__sub { color: var(--ink-soft); font-size: 12.5px; line-height: 1.35; }

/* ── Für wen: Häkchen und "Geht an" (v.35.65.0) ────────────────────── */
.empfaenger {
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--r-row);
  background: var(--surface);
}
.empfaenger__kopf {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s1) 0 var(--s2);
  color: var(--ink-soft);
  font-size: 13px;
}
.empfaenger .check-zeile { border-top: 1px solid var(--rule-soft, var(--border)); }
.empfaenger__name { flex: 1; min-width: 0; }
.empfaenger__rolle { color: var(--ink-soft); font-size: 12.5px; }
.plan-geht-an {
  margin: var(--s3) 0;
  padding: var(--s3);
  border-radius: var(--r-row);
  background: var(--accent-bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

/* ── Fortschritt der Athleten (v.35.65.0) ──────────────────────────── */
.fortschritt-tag { display: flex; align-items: center; gap: var(--s2); margin: var(--s3) 0; }
.fortschritt-tag__pfeil { padding: 0 var(--s3); }
.fortschritt-tag__datum { flex: 1; text-align: center; font-weight: 700; }
.fs-person { padding: var(--s3) 0; border-top: 1px solid var(--rule-soft, var(--border)); }
.fs-person__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.fs-person__name { font-weight: 750; }
.fs-person__stand { color: var(--ink-soft); font-size: 12.5px; }
.fs-einheit {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3);
  width: 100%;
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--r-row);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.fs-einheit:hover { border-color: var(--ink-soft); }
.fs-einheit__titel { flex: 1; min-width: 0; font-weight: 650; }
.fs-einheit__zahlen { width: 100%; color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.fs-einheit__notiz { width: 100%; color: var(--ink); font-size: 13px; font-style: italic; }
.fs-status {
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px; font-weight: 700;
}
.fs-status[data-status="fertig"] { background: color-mix(in oklab, var(--success, var(--accent)) 16%, var(--surface)); color: var(--ink); }
.fs-status[data-status="begonnen"] { background: var(--accent-bg); color: var(--accent); }
.fs-status[data-status="unbekannt"] { background: transparent; border: 1px dashed var(--border); }
/* Im Plan, aber nichts zum Abhaken (v.35.70.4): leiser als "begonnen",
   und die Zeile ist kein Link — es gibt nichts zu öffnen. */
.fs-status[data-status="imPlan"] { background: transparent; border: 1px solid var(--border); }
.fs-einheit--ohne { cursor: default; }
.fs-einheit--ohne:hover { border-color: var(--border); }
.fs-ohne { margin: var(--s3) 0 0; color: var(--ink-soft); font-size: 13px; }

/* ── Die Farben der Arten (v.35.68.0) ───────────────────────────────── */
.art-farben { display: grid; gap: var(--s2); margin-top: var(--s2); }
.art-farben__zeile { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--s2); align-items: center; }
.art-farben__art { font-size: 13px; font-weight: 650; color: var(--ink); }
.farbwahl--klein { gap: var(--s1); }
.farbwahl--klein .farbwahl__feld { width: 28px; height: 28px; }
/* "Wie die Gruppe": die Farbe der Gruppe mit einem Strich — keine eigene. */
.farbwahl__feld--gruppe { background-image: linear-gradient(135deg, transparent 45%, var(--surface) 45%, var(--surface) 55%, transparent 55%); }
