/* Nachbau-Zusätze der Aufgabe „Team, Partner und Aufgaben“ im Automatisierungskatalog (Präfix g-fa-team-).
 * Systemschrift und Farbe des Beispielbetriebs wie in geraete.css, Mindestschrift 13 px, nichts bedienbar.
 * Die Vertriebsanwendung nutzt die Flächen aus g-automatisierungen.css (g-auto-*). */

/* ---------- Grundwerte für Vorschauen und das Tablet (stecken nicht in Handy, Mail oder Fenster) ---------- */

.g-fa-team-v,
.g-fa-team-tablet {
  --g-schrift: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --g-text: #1f2328;
  --g-leise: #5f6670;
  --g-linie: #dfe2e6;
  --g-grund: #f3f4f6;
  font-family: var(--g-schrift);
  color: var(--g-text);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.g-fa-team-v { display: grid; gap: 8px; width: 100%; min-width: 0; }
.g-fa-team-mini {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--g-marke);
  border-radius: 10px;
  background: #fff;
}
.g-fa-team-mini-titel { font-weight: 700; overflow-wrap: anywhere; }
.g-fa-team-mitte { display: flex; justify-content: center; }

/* ---------- Kleine Teile ---------- */

.g-fa-team-huelle { display: flex; justify-content: center; width: 100%; min-width: 0; }
.g-fa-team-klein { font-size: 13px; color: var(--g-leise); }
.g-fa-team-fett { font-weight: 700; }
.g-fa-team-umbruch { overflow-wrap: anywhere; }
.g-fa-team-stapel { display: grid; gap: 10px; align-content: start; min-width: 0; }
.g-fa-team-stapel-eng { display: grid; gap: 3px; min-width: 0; }
.g-fa-team-zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  font-size: 14px;
}
.g-fa-team-zeile > span { min-width: 0; overflow-wrap: anywhere; }
.g-fa-team-knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-fa-team-knopfzeile .g-knopf--voll { flex: 0 1 auto; }
.g-fa-team-legende { margin-top: 2px; font-size: 13px; font-weight: 700; }
.g-fa-team-hinweis { font-size: 13px; color: var(--g-leise); }
.g-fa-team-marken { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g-fa-team-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-fa-team-haken { display: grid; gap: 6px; }
.g-fa-team-kennung { font-family: 'Cascadia Mono', 'SF Mono', 'Segoe UI Mono', Consolas, monospace; font-size: 13px; }
.g-fa-team-fehler { padding: 8px 10px; border-radius: 6px; background: #fbe3e3; color: #8a1c1c; font-size: 13px; }

/* ---------- Mails ---------- */

/* Kopf der Vorlagen-Mails der Vertriebsanwendung in Serifenschrift wie im Original */
.g-fa-team-vp .g-mail-kopf { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 17px; }
.g-fa-team-panel { display: grid; gap: 2px; margin: 12px 0 4px; padding: 8px 12px; border: 1px solid var(--g-auto-linie, var(--g-linie)); border-radius: 4px; background: #fafbfc; }
.g-fa-team-panel .g-zeilen { margin: 2px 0; }
.g-fa-team-panel--marke { border: 0; border-left: 4px solid var(--g-marke); border-radius: 6px; }
.g-fa-team-panel-titel { font-size: 16px; font-weight: 700; line-height: 1.35; }
.g-fa-team-panel-fuss { margin-top: 4px; padding-top: 8px; border-top: 1px solid #eef0f3; font-size: 14px; }
.g-fa-team-mailtitel { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.g-fa-team-mailknopf { margin: 14px 0 4px; }
.g-fa-team-mailknopf .g-knopf { min-height: 40px; padding: 0 20px; white-space: normal; text-align: center; }
.g-fa-team-notiz { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--g-marke-hell); font-size: 13px; }
.g-fa-team-achtung { margin-top: 10px; padding: 8px 10px; border-radius: 4px; background: #fbf0c8; color: #6e5100; font-size: 13px; }
.g-fa-team-klartext .g-text { font-size: 14px; overflow-wrap: anywhere; }
.g-fa-team-klartext .g-text + .g-text { margin-top: 6px; }

/* ---------- Vertriebsanwendung: Reiter, Anzahl, Rückmeldeseite, Anruf-Fenster ---------- */

.g-fa-team-reiter { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--g-auto-linie, var(--g-linie)); }
.g-fa-team-reiter > span { margin-bottom: -1px; padding: 6px 0; border-bottom: 2px solid transparent; font-size: 14px; color: var(--g-leise); }
.g-fa-team-reiter > .g-fa-team-reiter-an { border-bottom-color: var(--g-marke); color: var(--g-text); font-weight: 600; }
.g-fa-team-anzahl { margin-left: 8px; font-family: var(--g-schrift); font-size: 13px; font-weight: 400; color: var(--g-leise); }
.g-fa-team-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 10px; }

.g-fa-team-oeffentlich,
.g-fa-team-anruf {
  flex: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 12px 18px;
  background: var(--g-auto-papier, #f4f6f9);
}
.g-fa-team-oeffentlich .g-auto-karte { display: grid; gap: 8px; padding: 12px; }
.g-fa-team-oeffentlich .g-auto-karte-titel { margin: 0; }
.g-fa-team-oeffentlich .g-zeilen { margin: 0; }
.g-fa-team-marke { font-family: var(--g-auto-serif, Georgia, serif); font-size: 15px; color: var(--g-marke); text-align: center; }
.g-fa-team-h1 { font-family: var(--g-auto-serif, Georgia, serif); font-size: 20px; font-weight: 600; text-align: center; }
.g-fa-team-oeffentlich > .g-text { text-align: center; }
.g-fa-team-wahlen { display: grid; gap: 6px; }
.g-fa-team-wahl {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0 8px;
  align-items: start;
  padding: 7px 10px;
  border: 1px solid #cfd4db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.g-fa-team-wahl::before {
  content: '';
  grid-row: 1 / span 2;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #8c939c;
  border-radius: 50%;
}
.g-fa-team-wahl--an { border-color: var(--g-marke); background: var(--g-marke-hell); }
.g-fa-team-wahl--an::before { border: 5px solid var(--g-marke); }
.g-fa-team-wahl-name { font-size: 14px; font-weight: 700; }
.g-fa-team-wahl-text { color: var(--g-leise); }

.g-fa-team-anruf-kopf { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--g-auto-linie, var(--g-linie)); }
.g-fa-team-anruf-titel { font-family: var(--g-auto-serif, Georgia, serif); font-size: 18px; font-weight: 600; }
.g-fa-team-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.g-fa-team-kachel {
  display: grid;
  gap: 1px;
  align-content: start;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #cfd4db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.g-fa-team-kachel--an { border-color: var(--g-marke); background: var(--g-marke-hell); box-shadow: inset 0 0 0 1px var(--g-marke); color: var(--g-marke); }
.g-fa-team-kachel-text { font-weight: 400; color: var(--g-leise); }

/* ---------- Internes CRM: Dialog, Board, Kommentare ---------- */

.g-fa-team-dialog { display: grid; gap: 10px; min-width: 0; }
.g-fa-team-dialog > .g-zeilen { margin: 0; }
.g-fa-team-dialog-titel { font-size: 17px; font-weight: 700; line-height: 1.3; }
.g-fa-team-aufklapp { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--g-linie); border-radius: 10px; background: #fafbfc; }
.g-fa-team-aufklapp-kopf { font-size: 14px; font-weight: 600; }
.g-fa-team-aufklapp-kopf::before { content: '\25BE\00a0'; color: var(--g-leise); }
.g-fa-team-spalte { display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: var(--g-grund); }
.g-fa-team-spalte-name { font-size: 13px; font-weight: 700; color: var(--g-leise); }
.g-fa-team-boardkarte { display: grid; gap: 6px; padding: 10px 12px; border-top: 4px solid var(--g-marke); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.g-fa-team-erwaehnt { padding: 0 8px; border-radius: 999px; background: var(--g-marke); color: #fff; font-size: 13px; font-weight: 700; }
/* Priorität auf der Board-Karte: im Original nur ein Farbpunkt (Hoch = #F76808) */
.g-fa-team-punkt { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #f76808; }
.g-fa-team-kommentar { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--g-grund); font-size: 13px; }
.g-fa-team-kommentar-kopf { font-weight: 600; }
.g-fa-team-at { color: var(--g-marke); font-weight: 700; }
.g-fa-team-eingabe { display: flex; align-items: end; gap: 6px; }
.g-fa-team-eingabe .g-feld { flex: 1; min-width: 0; }
.g-fa-team-eingabe .g-feld-name:empty { display: none; }
.g-fa-team-kasten .g-feld-name:empty { display: none; }

/* ---------- Flächen in Programmfenstern (Zeiterfassung, Auftrags-App) ---------- */

.g-fa-team-flaeche { display: grid; gap: 12px; min-width: 0; container-type: inline-size; }
.g-fa-team-kopf { display: grid; gap: 2px; min-width: 0; }
.g-fa-team-h { font-size: 19px; font-weight: 700; line-height: 1.25; }
.g-fa-team-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.g-fa-team-kasten { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid var(--g-linie); border-radius: 12px; background: #fff; }
.g-fa-team-kasten > .g-zeilen { margin: 0; }
.g-fa-team-kasten-titel { font-size: 15px; font-weight: 700; }
.g-fa-team-unterkopf { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--g-leise); }
.g-fa-team-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g-fa-team-zahl { display: grid; gap: 2px; align-content: start; padding: 8px 10px; border-radius: 10px; background: var(--g-grund); }
.g-fa-team-zahl-wert { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-fa-team-zahl-name { font-size: 13px; line-height: 1.25; color: var(--g-leise); }
.g-fa-team-zahl-klein { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-fa-team-knopfgitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.g-fa-team-knopfgitter .g-knopf { white-space: normal; text-align: center; }

.g-fa-team-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.g-fa-team-tabelle th { padding: 6px 8px; background: var(--g-grund); color: var(--g-leise); font-weight: 600; text-align: left; }
.g-fa-team-tabelle td { padding: 7px 8px; border-bottom: 1px solid var(--g-linie); vertical-align: top; overflow-wrap: anywhere; }
.g-fa-team-tabelle .g-fa-team-r { text-align: right; font-variant-numeric: tabular-nums; }
.g-fa-team-feldname { display: none; }

@container (max-width: 560px) {
  .g-fa-team-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-fa-team-spalten { grid-template-columns: minmax(0, 1fr); }
  .g-fa-team-tabelle thead { display: none; }
  .g-fa-team-tabelle,
  .g-fa-team-tabelle tbody,
  .g-fa-team-tabelle tr { display: block; }
  .g-fa-team-tabelle tr { padding: 6px 0; border-bottom: 1px solid var(--g-linie); }
  .g-fa-team-tabelle td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding: 2px 0; border: 0; }
  .g-fa-team-tabelle .g-fa-team-r { text-align: left; }
  .g-fa-team-feldname { display: block; color: var(--g-leise); }
}

/* ---------- Apps am Handy (Zeiterfassung, Auftrags-App) ---------- */

.g-fa-team-hallo { font-size: 20px; font-weight: 700; line-height: 1.25; }
.g-fa-team-pille {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e2f1e3;
  color: #1d5b21;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.g-fa-team-pille::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.g-fa-team-pille--grau { background: #ececec; color: #4f4f4f; }
.g-fa-team-pille--warn { background: #fbf0c8; color: #6e5100; white-space: normal; }
.g-fa-team-heute { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.g-fa-team-heute-rechts { display: grid; justify-items: end; }
.g-fa-team-gross { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-fa-team-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-fa-team-auftrag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.g-fa-team-auftrag-titel { font-weight: 600; }
.g-fa-team-auftrag .g-fa-team-klein { grid-column: 1 / -1; }
.g-fa-team-person { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--g-linie); }
.g-fa-team-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--g-marke-hell); color: var(--g-marke); font-size: 14px; font-weight: 700; }
.g-fa-team-last { display: grid; justify-items: end; text-align: right; }

/* ---------- Verwaltung einer Website und Künstlerbereich ---------- */

.g-fa-team-editor { display: grid; gap: 10px; min-width: 0; }
.g-fa-team-box { display: grid; gap: 4px; padding: 10px 12px; border-left: 4px solid var(--g-marke); border-radius: 8px; background: var(--g-marke-hell); font-size: 13px; }

/* ---------- Tablet am Personaleingang ---------- */

.g-fa-team-tablet {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border-radius: 28px;
  background: #1b1a1f;
  box-shadow: 0 18px 40px -16px rgba(20, 10, 30, 0.45);
}
.g-fa-team-kiosk {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 380px;
  padding: 18px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--g-marke-hell) 0%, #fff 45%);
  text-align: center;
}
.g-fa-team-kiosk .g-text { max-width: 30ch; }
.g-fa-team-kiosk .g-knoepfe { justify-content: center; }
.g-fa-team-kiosk .g-knopf { flex: 0 1 auto; }
.g-fa-team-kiosk-marke { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--g-marke); }
.g-fa-team-kiosk-uhr { font-size: 40px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.g-fa-team-stempel {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--g-marke);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}
.g-fa-team-stempel--gut { background: #2e7d32; }
.g-fa-team-stempel--klein { width: 144px; height: 144px; }
.g-fa-team-stempel--klein .g-fa-team-stempel-titel { font-size: 17px; }
.g-fa-team-stempel-titel { font-size: 19px; font-weight: 700; }
.g-fa-team-stempel-zeit { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }
.g-fa-team-stempel-text { max-width: 118px; font-size: 13px; line-height: 1.3; text-align: center; }
.g-fa-team-kamera {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(165deg, #5b6472 0%, #262b33 100%);
}
.g-fa-team-kamera::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.g-fa-team-kamera::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 150px;
  height: 90px;
  margin-left: -75px;
  border-radius: 75px 75px 0 0;
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 420px) {
  .g-fa-team-filter { grid-template-columns: minmax(0, 1fr); }
}

/* Tabellen der Vertriebsanwendung: schmal steht jede Zeile als eigener Block */
@container (max-width: 560px) {
  .g-fa-team-vptab tr + tr { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--g-auto-linie, var(--g-linie)); }
}
.g-fa-team-inhalt { display: grid; gap: 8px; min-width: 0; }
.g-fa-team-inhalt > .g-text + .g-text { margin-top: 0; }
.g-fa-team-inhalt > .g-auto-karte-kopf { margin-bottom: 0; }
