/* ══ Anfragen im Projektmanagement (frontend/anfragen.js, seit 06.10.2026) ══
   Wer ist dran? Die Plaketten auf der Karte und der Abschnitt im Dialog
   tragen nur Tokens — Gelb für „du bist dran", Rot für eine abgelaufene
   Frist, Blau für „läuft", Grau für Entwürfe. */
.pb-sp-wartet .pb-spalte-kopf { color: var(--blue); }
.anf-pille {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: var(--fs-2xs); font-weight: 600; line-height: 1.3;
  border-radius: 999px; padding: 1px 7px; background: var(--bg-card2); color: var(--text-muted);
}
.anf-pille svg { width: 11px; height: 11px; }
.anf-p-antwort    { color: var(--yellow); }
.anf-p-nachfassen { color: var(--red); }
.anf-p-wartet     { color: var(--blue); }
.anf-p-fehler     { color: var(--red); }
.anf-neu          { color: var(--brand); }
.pb-k-fuss { flex-wrap: wrap; row-gap: 4px; }

.anf {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.anf-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-sm); }
.anf-kopf svg { width: 15px; height: 15px; color: var(--text-muted); }
.anf-kopf-luecke { flex: 1; }
.anf-summe, .anf-hinweis, .anf-pf { font-size: var(--fs-xs); color: var(--text-muted); }
.anf-pf-fehler { color: var(--red); display: inline-flex; align-items: center; gap: 3px; }
.anf-pf-fehler svg { width: 12px; height: 12px; color: var(--red); }
.anf-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.anf-k {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; background: var(--bg-card);
}
.anf-z-erledigt   { opacity: .62; }
.anf-k-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.anf-k-punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--border-strong); }
.anf-z-antwort .anf-k-punkt { background: var(--yellow); }
.anf-z-nachfassen .anf-k-punkt { background: var(--red); }
.anf-z-wartet .anf-k-punkt { background: var(--blue); }
.anf-k-wer { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; flex: 1 1 220px; min-width: 0; }
.anf-k-name { font-weight: 600; font-size: var(--fs-sm); }
.anf-k-mail, .anf-k-zustand { font-size: var(--fs-xs); color: var(--text-muted); }
.anf-z-antwort .anf-k-zustand { color: var(--yellow); font-weight: 600; }
.anf-z-nachfassen .anf-k-zustand { color: var(--red); font-weight: 600; }
.anf-k-mehr { position: relative; }
.anf-k-mehr > summary { list-style: none; cursor: pointer; }
.anf-k-mehr > summary::-webkit-details-marker { display: none; }
.anf-k-mehr[open] { flex: 1 1 100%; order: 9; }
.anf-k-menue { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.anf-k-menue button {
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card2); cursor: pointer;
  padding: 4px 10px; font-size: var(--fs-xs); color: var(--text);
}
.anf-mehr { font-size: var(--fs-2xs); color: var(--text-muted); font-weight: 600; }
.anf-form, .anf-neu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.anf-form input, .anf-neu input {
  flex: 1 1 180px; min-width: 0; font: inherit; font-size: var(--fs-sm);
  padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
}
.anf-form textarea {
  flex: 1 1 100%; font: inherit; font-size: var(--fs-sm); padding: 6px 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text); resize: vertical;
}
.anf-check { flex: 1 1 100%; display: flex; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); }
.anf-form-fuss { display: flex; gap: 6px; flex: 1 1 100%; }
.anf-cockpit {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; text-decoration: none;
}
.anf-cockpit .anf-pille { font-size: var(--fs-xs); padding: 2px 9px; }

/* ══ Mail lesen und beantworten in der Karte (frontend/anfragen-mail.js, seit 27.10.2026) ══
   Die Mail steht unter dem Kontakt, darunter das Antwortfeld. Der Text der
   Mail behält seine Zeilen und scrollt in sich, damit der Dialog nicht wächst. */
.anf-post { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.anf-post[hidden] { display: none; }
.anf-post-kopf { display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--text); overflow-wrap: anywhere; }
.anf-post-zeile > span { display: inline-block; min-width: 58px; color: var(--text-muted); font-weight: 600; }
.anf-post-text {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); line-height: 1.5; color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card2);
}
/* Seit 27.10.2026 (Vincent: „sperrig“): Kopf in einer Zeile, ab zwölf Zeilen gekürzt mit „mehr“. */
.anf-post-zeile1 { display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: var(--fs-sm); color: var(--text); }
.anf-post-zeile1 b { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anf-post-zeile1 > span { flex: none; color: var(--text-muted); white-space: nowrap; }
.anf-post-zeile1 > .anf-post-betreff { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.anf-post-text.gekuerzt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 12; line-clamp: 12; overflow: hidden; }
.anf-post-mehr { align-self: flex-start; margin-top: -4px; }
.anf-post-ki { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--brand); }
.anf-post-ki svg, .anf-post-ok svg { width: 13px; height: 13px; flex: none; }
.anf-post-ok { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--green); }
.anf-post-mehrfelder { display: flex; flex-direction: column; gap: 6px; }
.anf-post-anhaenge { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text); }
.anf-post-anhaenge svg { width: 12px; height: 12px; color: var(--text-muted); }
.anf-post-leise { font-size: var(--fs-xs); color: var(--text-muted); }
.anf-post-warnung { font-size: var(--fs-xs); color: var(--red); font-weight: 600; white-space: pre-wrap; }
.anf-post-antwort { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--border); }
.anf-post-feld { display: flex; align-items: center; gap: 8px; min-width: 0; }
.anf-post-feld > span { flex: none; width: 58px; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.anf-post-feld input, .anf-post-feld select, .anf-post-antwort textarea {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--fs-sm); padding: 5px 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text);
}
.anf-post-antwort textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.anf-post-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.anf-post-stand .anf-post-feld { flex: 1 1 320px; }
.anf-post-stand .anf-check { flex: none; }
.anf-post-fuss { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.anf-post-fuss .anf-check { flex: none; }
.anf-post-standzeile { display: flex; align-items: center; gap: 6px; flex: 1 1 240px; min-width: 0; }
.anf-post-standtext {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--fs-sm); padding: 4px 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text);
}

/* ══ Posteingang: „Nicht übernommen“ unter dem Brett (frontend/posteingang.js, seit 27.10.2026) ══
   Eingeklappt eine Zeile; ein gescheiterter Lauf steht auch zu sichtbar. */
#posteingang-netz { margin-top: 12px; }
.pe { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); padding: 8px 12px; }
.pe-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; cursor: pointer; font-size: var(--fs-sm); list-style: none; }
.pe-summary::-webkit-details-marker { display: none; }
.pe-summary svg { width: 15px; height: 15px; color: var(--text-muted); }
.pe[open] > .pe-summary { margin-bottom: 6px; }
.pe-gruppe { margin-top: 8px; }
.pe-gruppe > summary { cursor: pointer; font-size: var(--fs-sm); display: flex; gap: 6px; align-items: baseline; }
.pe-liste { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pe-zeile { border-top: 1px solid var(--border); padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.pe-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pe-wann, .pe-grund { font-size: var(--fs-xs); color: var(--text-muted); flex: none; }
.pe-wer { font-size: var(--fs-sm); font-weight: 600; flex: 0 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-betreff { font-size: var(--fs-sm); color: var(--text); flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }

/* ══ Sekretär (frontend/sekretaer.js, seit 27.10.2026) ══ */
#sekretaer-bereich { margin-top: 12px; }
.sek-kat { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sek-kat-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: var(--fs-sm); }
.sek-text {
  font: inherit; font-size: var(--fs-sm); padding: 6px 8px; line-height: 1.5; resize: vertical;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text);
}
.sek-vorschau { max-height: none; font-size: var(--fs-xs); color: var(--text-muted); }

/* Neue Mail aus der Karte (anfragen-mail.js, neuHtml) */
.anf-neu-mail .anf-post-antwort { padding-top: 10px; }
/* Unten in der Anfrage: „+ Kontakt“ und „Neue Mail“ in einer Zeile; was aufgeht, nimmt die ganze Breite. */
.anf-aktionen { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin-top: 8px; }
.anf-neu-kontakt > summary { list-style: none; }
.anf-neu-kontakt > summary::-webkit-details-marker { display: none; }
.anf-neu-kontakt[open], .anf-neu-mail.offen { flex-basis: 100%; }
