/* seiten/tag.css – G3 Tag – tag.html (Checker und Verwaltung)
   Wird von base.html auf JEDER Seite nach app.css geladen (?v=STATIC_VERSION).
   Nur Selektoren dieser Gruppe. Tokens (var(--…)) nur aus app.css, keine neuen Farbwerte hier. */

/* --- Datumskopf: Pfeile, Datum, Hotel ------------------------------------------------------------ */
.zeitraum-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--s4); }
.zeitraum-kopf .mitte { text-align: center; min-width: 0; }
.zeitraum-kopf h1 { margin: 0; font-size: var(--fs-xl); }
.zeitraum-kopf p { margin: 2px 0 0; justify-content: center; }
/* --- Checker / Tag: Personen -------------------------------------------------------------- */
.personen { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.person { padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 16px; }
.person:first-child { padding-top: 4px; }
.person:last-child { border-bottom: 0; }
.person:target { border-radius: var(--r-m); box-shadow: 0 0 0 2px var(--accent-line); background: oklch(0.746 0.18 129.9 / 0.07); padding-inline: 12px; margin-inline: -12px; }
.person-kopf { display: flex; align-items: center; gap: 12px; }
.person-kopf .avatar { width: 40px; height: 40px; background: var(--brand-tint); color: var(--brand-text); }
.person-kopf .avatar.laeuft { background: var(--live); color: var(--on-live); box-shadow: 0 0 0 3px oklch(0.627 0.17 149.2 / 0.22); }
.person-kopf .wer-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.korrektur { display: grid; gap: var(--s2); margin-top: var(--s3); }
.korr-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 44px 52px 44px; align-items: center; gap: 6px; }
.korr-zeile > span { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.korr-zeile > span .ic { width: 20px; height: 20px; }
.korr-zeile.abreise > span { color: var(--abreise); }
.korr-zeile.bleiber > span { color: var(--bleiber); }
.korr-zeile form { margin: 0; }
.korr-zeile .z { text-align: center; font-size: 1.375rem; font-family: var(--f-titel); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0 0; }
.chip-klein { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: var(--r-s); font-size: var(--fs-sm); font-weight: 600; }
.chip-klein .ic { width: 14px; height: 14px; }
.chip-klein.abreise { background: var(--abreise-bg); color: var(--abreise); }
.chip-klein.bleiber { background: var(--bleiber-bg); color: var(--bleiber); }
.schicht { margin-top: var(--s2); }
.schicht summary { font-weight: 500; color: var(--ink-2); font-size: var(--fs-md); }
.zeitraum-kopf .klein.mit-ic { justify-content: center; }
/* Hotelzeile bleibt einzeilig (360 px): Symbol weg, Name kuerzt mit … */
.zeitraum-kopf .ort { flex-wrap: nowrap; min-width: 0; }
.zeitraum-kopf .ort > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .zeitraum-kopf .ort .ic { display: none; } }
.tag-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: var(--s3) 0 0; }
/* Freigabe = letzte Karte, nach der Pruefung; Lime-Kante = hier wird entschieden */
.freigabe-karte { border-top: 3px solid var(--accent); }
.freigabe-karte .meldung { margin-bottom: var(--s3); }
/* Personen nebeneinander, sobald die Karte breit genug ist (2 ab ~584 px, 3 ab 900 px Inhalt) */
@container (min-width: 584px) {
  .personen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
  .personen > .person, .personen > .person:first-child { padding: var(--s3) 0; }
  .personen > .person:last-child { border-bottom: 1px solid var(--line-soft); }
}
@container (min-width: 900px) { .personen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
