/* OTBT OS (Team) + Teamverwaltung in Kitsune — 13.11.2026.
   Präfix team-. Farben nur über die Tokens aus design.css (hell/dunkel nach Sonnenstand). */

/* ── Login ─────────────────────────────────────────────────────────────── */
body.team-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 1rem; }
.team-login-box { width: 100%; max-width: 380px; background: var(--panel); border-radius: 18px; padding: 1.75rem 1.5rem; box-shadow: 0 14px 40px rgba(0,0,0,.10); }
.team-login-marke { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.25rem; font-family: var(--display-font, inherit); font-size: 1.35rem; font-weight: 700; }
.team-login-marke img { width: 44px; height: 44px; object-fit: contain; }
.team-login-box form { display: grid; gap: .8rem; }
.team-login-box label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.team-login-fehler { background: var(--crit-bg); color: var(--crit-fg); border-radius: 10px; padding: .5rem .75rem; margin-bottom: .9rem; font-size: .9rem; }
.team-login-hinweis { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* ── Startseite ────────────────────────────────────────────────────────── */
.team-hallo { font-family: var(--display-font, inherit); font-size: 1.6rem; margin: .5rem 0 1.25rem; }
.team-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--tile-gap, 1rem); }
.team-karte { position: relative; display: flex; gap: .85rem; align-items: center; padding: 1rem; border-radius: 16px; background: var(--panel); color: var(--ink); text-decoration: none; border: 1px solid var(--border-soft); transition: transform .12s ease, box-shadow .12s ease; }
.team-karte:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.08); color: var(--ink); }
.team-karte-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-alt); font-size: 1.3rem; }
.team-karte-icon img { width: 34px; height: 34px; object-fit: contain; }
.team-karte-text { display: grid; gap: .15rem; min-width: 0; padding-right: 2.4rem; }
.team-karte-text small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.team-karte-bald { position: absolute; top: .6rem; right: .7rem; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); }
.team-bald { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.team-bald i { font-size: 2.2rem; }
.team-bald h2 { font-size: 1.3rem; margin: .75rem 0 .35rem; color: var(--ink); }

/* ── „Ansehen als“-Leiste (nur Jens sieht sie) ─────────────────────────── */
.team-ansicht { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center;
  padding: .45rem 1rem; background: var(--info-bg); color: var(--info-fg); font-size: .88rem; }
.team-ansicht form { margin: 0; }
.team-ansicht button { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; }
.team-ansicht button:hover { background: rgba(255,255,255,.35); }

/* ── Teamverwaltung (Kitsune) ──────────────────────────────────────────────
   Seitengerüst wie alle Tools: .content-frame + renderBrandHeader, Blöcke als .panel,
   Tabellenköpfe/Rahmen aus design.css, Toast .otbt-toast. Hier nur das Eigene. */
.tv-rechte { padding: 0; overflow: hidden; }
.tv-scroll { overflow-x: auto; }
.tv-leer { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.tv-matrix { min-width: 760px; margin: 0; }
.tv-matrix th, .tv-matrix td { text-align: center; vertical-align: middle; padding: .5rem .4rem; border-left: 0; border-right: 0; }
.tv-matrix thead th { font-size: .82rem; white-space: nowrap; }
.tv-matrix th.tv-gruppe { font-size: .72rem; color: var(--muted); border-bottom: 0; padding-bottom: 0; }
.tv-matrix .tv-th-icon { display: block; font-size: 1.1rem; margin: 0 auto .15rem; line-height: 1; }
.tv-matrix .tv-th-icon img { width: 24px; height: 24px; object-fit: contain; }
.tv-matrix .tv-person { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 180px; background: var(--panel); }
.tv-matrix thead .tv-person { background: var(--panel2); }
.tv-person-zeile { cursor: pointer; }
.tv-person-zeile:hover td, .tv-person-zeile.tv-offen td { background: var(--row-hover); }
.tv-person-name { font-weight: 600; }
.tv-person-sub { display: block; font-size: .75rem; color: var(--muted); }
.tv-inaktiv .tv-person-name { text-decoration: line-through; color: var(--muted); }
.tv-zelle { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border-soft); background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: transparent; }
.tv-zelle:hover { border-color: var(--ink); }
.tv-zelle.an { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok-fg); }
.tv-zelle.standard { border-style: dashed; }
.tv-zelle.an.standard { background: color-mix(in srgb, var(--ok-bg) 40%, transparent); border-color: var(--ok-fg); }
.tv-legende { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); padding: .65rem .9rem; border-top: 1px solid var(--line); }
.tv-legende .tv-zelle { width: 15px; height: 15px; border-radius: 5px; vertical-align: -3px; margin-right: .3rem; }

.tv-person { margin-top: var(--tile-gap, 1rem); }
.tv-kopf { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.tv-kopf h2 { font-family: var(--display-font); font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.tv-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.tv-person h3 { font-family: var(--display-font); font-size: .95rem; letter-spacing: .02em; margin: 1rem 0 .55rem; }
.tv-person label { display: grid; gap: .25rem; font-size: .82rem; color: var(--muted); margin-bottom: .65rem; }
.tv-person .tv-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tv-person .tv-check { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: .9rem; margin-bottom: .4rem; }
.tv-person .tv-check input { width: 1.05rem; height: 1.05rem; flex: none; }
.tv-person .tv-check small { color: var(--muted); }
.tv-person .tv-extra { margin-left: 1.6rem; font-size: .84rem; }
.tv-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; }
.tv-hinweis { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.tv-einmal { background: var(--warn-bg); color: var(--warn-fg); border-radius: 12px; padding: .75rem .9rem; margin: .5rem 0; font-size: .85rem; word-break: break-all; }
.tv-einmal code { color: inherit; }
.tv-fuss { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .tv-spalten { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tv-person .tv-zwei { grid-template-columns: 1fr; } }
