/* ZAVET SIPES Aufgabenmanager - Gestaltung
   Ruhige Grundflaeche, starke Farbe nur fuer das, was jetzt Handeln verlangt. */
:root {
  --grund: #f4f6f8; --flaeche: #ffffff; --flaeche2: #f9fafb; --linie: #e3e7ec; --linie2: #d4dae1; --notiz2: #eef3f8; --notiz1: #eef8ec; --notiz1rand: #cfe8c9;
  --text: #17202b; --leise: #66717f; --sehrleise: #9aa4b1;
  --marke: #745609; --marke2: #8a6a12; --markehell: #f8f1de; --akzent: #f59e0b;   /* Gold statt Gruen (Frank 2026-10-31); dunkles Gold, damit Schrift lesbar bleibt */
  --gut: #15803d; --guthell: #e7f6ec; --warn: #b45309; --schlecht: #c62828; --schlechthell: #fdecec;
  --p1: #d32f2f; --p2: #ef6c00; --p3: #f59e0b; --p4: #c8a400; --p5: #2f6fde; --p6: #6b7a8c; --p7: #a4afbd;
  --gelb: #fff1a8; --rot: #ffd0d0; --gruen: #c9f2d0;
  --schatten: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --schatten2: 0 12px 32px rgba(16,24,40,.18);
  --rund: 10px; --rund2: 14px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f1418; --flaeche: #161d23; --flaeche2: #1b232a; --linie: #26313a; --linie2: #33414c; --notiz2: #1d2731; --notiz1: #1a2a1c; --notiz1rand: #2e4a31;
    --text: #e6ebf0; --leise: #9aa7b4; --sehrleise: #6c7a87;
    --marke: #e2b84c; --marke2: #f0c860; --markehell: #3a2e10; --guthell: #12301d; --schlechthell: #3a1a1a;
    --gelb: #5b5016; --rot: #5c2525; --gruen: #1f4b2a;
    --schatten: 0 1px 2px rgba(0,0,0,.4); --schatten2: 0 12px 32px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--schrift); color: var(--text); background: var(--grund);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--marke); }
.versteckt { display: none !important; }
:focus-visible { outline: 2px solid var(--marke2); outline-offset: 2px; }

/* ---------- Start und Anmeldung */
.startbild { height: 100vh; display: grid; place-items: center; }
.startbild img { animation: puls 1.4s ease-in-out infinite; }
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--markehell), transparent),
              radial-gradient(900px 500px at 110% 110%, rgba(245,158,11,.12), transparent), var(--grund); }
.anmeldekarte { width: 100%; max-width: 380px; background: var(--flaeche); border-radius: 18px;
  box-shadow: var(--schatten2); padding: 32px 28px; animation: hoch .35s ease-out; }
.anmeldekarte .kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.anmeldekarte h1 { font-size: 20px; margin: 0; }
.anmeldekarte .unter { color: var(--leise); font-size: 13px; }
.anmeldekarte label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.anmeldekarte input { width: 100%; }
.anmeldekarte .knopf { width: 100%; margin-top: 22px; padding: 11px; font-size: 15px; }
.fehlertext { color: var(--schlecht); font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- Bedienelemente */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month],
input[type=search], select, textarea {
  border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 8px; padding: 8px 10px;
  min-height: 38px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marke2);
  box-shadow: 0 0 0 3px var(--markehell); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0;
  border-radius: 8px; padding: 8px 14px; min-height: 36px; background: var(--marke); color: #fff;
  font-weight: 600; cursor: pointer; transition: background .15s, transform .08s, box-shadow .15s;
  white-space: nowrap; text-decoration: none; }
.knopf:hover { background: var(--marke2); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie2); }
.knopf.zweit:hover { background: var(--flaeche2); border-color: var(--sehrleise); }
.knopf.flach { background: transparent; color: var(--leise); padding: 6px 8px; }
.knopf.flach:hover { background: var(--flaeche2); color: var(--text); }
.knopf.klein { min-height: 28px; padding: 4px 10px; font-size: 13px; }
.knopf.gefahr { background: var(--schlecht); }
.knopf.akzent { background: var(--akzent); color: #3b2500; }
.symbol { width: 18px; height: 18px; flex: none; }

/* ---------- Grundaufbau */
.oben { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.oben .marke { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px;
  color: var(--text); text-decoration: none; }
.oben .marke small { font-weight: 500; color: var(--leise); font-size: 12px; display: block; }
.oben .suche { flex: 1; max-width: 560px; position: relative; }
.oben .suche input { width: 100%; padding-left: 36px; background: var(--flaeche2); }
.oben .suche .symbol { position: absolute; left: 10px; top: 10px; color: var(--sehrleise); }
.oben .rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menuknopf { display: none; }
.kopfbild { width: 34px; height: 34px; border-radius: 50%; background: var(--markehell); color: var(--marke);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; }
.haupt { display: grid; grid-template-columns: 236px minmax(340px, 440px) 1fr; height: calc(100vh - 56px); }
.seite { border-right: 1px solid var(--linie); background: var(--flaeche); overflow-y: auto; padding: 12px 8px 24px; }
.seite h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--sehrleise);
  margin: 18px 10px 6px; }
.ansicht { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text); }
.ansicht:hover { background: var(--flaeche2); }
.ansicht.aktiv { background: var(--markehell); color: var(--marke); font-weight: 600; }
.ansicht .zahl { margin-left: auto; font-size: 12px; color: var(--leise); font-weight: 600; }
.ansicht .zahl.heiss { background: var(--p1); color: #fff; border-radius: 10px; padding: 0 7px; }
.liste { display: flex; flex-direction: column; border-right: 1px solid var(--linie); min-width: 0;
  background: var(--flaeche2); }
.detail { overflow: hidden; display: flex; min-width: 0; background: var(--grund); }

/* ---------- Filter */
.filter { padding: 10px 12px; border-bottom: 1px solid var(--linie); background: var(--flaeche);
  display: flex; flex-direction: column; gap: 8px; }
.filter .reihe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter .titel { display: flex; align-items: center; gap: 8px; }
.filter .titel h2 { font-size: 17px; margin: 0; }
.filter .titel .anzahl { color: var(--leise); font-size: 13px; }
.filter select { min-height: 30px; padding: 3px 8px; font-size: 13px; }
.chip { border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 16px; padding: 3px 10px;
  font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--leise);
  min-height: 28px; transition: all .15s; }
.chip:hover { border-color: var(--sehrleise); color: var(--text); }
.chip:disabled, .gesperrt { opacity: .45; cursor: help; }
.gesperrt:hover { background: inherit; }
.meldung.hinweis { background: #1e4fb8; max-width: min(520px, 92vw); }
.meldung.hinweis::before { content: "i"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1e4fb8; font-weight: 800; flex: none; }
.chip.an { background: var(--markehell); border-color: var(--marke2); color: var(--marke); font-weight: 600; }
.prio-chip { width: 30px; justify-content: center; font-weight: 700; padding: 3px 0; }
.prio-chip.an { color: #fff; border-color: transparent; }
.filter .mehrfilter { display: none; }
.filter .mehrfilter.offen { display: flex; }

/* ---------- Ticketzeilen */
.zeilen { overflow-y: auto; flex: 1; padding: 8px; }
.jetztdran { margin: 2px 0 10px; }
.jetztdran h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--p1); margin: 4px 6px 6px;
  display: flex; align-items: center; gap: 6px; }
.zeile { position: relative; display: grid; grid-template-columns: 5px 1fr; background: var(--flaeche);
  border-radius: var(--rund); box-shadow: var(--schatten); margin-bottom: 6px; cursor: pointer; overflow: hidden;
  transition: transform .12s, box-shadow .15s, background .15s; animation: einblenden .25s ease-out; }
.zeile:hover { box-shadow: 0 4px 14px rgba(16,24,40,.12); }
.zeile.gewaehlt { outline: 2px solid var(--marke2); }
.zeile.fertig { opacity: .6; }
.zeile.neu-markiert { animation: aufleuchten 1.6s ease-out; }
.zeile .balken { background: var(--p5); }
.zeile .inhalt { padding: 9px 12px 9px 11px; min-width: 0; }
.zeile .z1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.zeile .betreff { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.zeile.ungelesen .betreff { font-weight: 750; }
.zeile.ungelesen::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--marke2); }
.zeile:hover .betreff.lang, .zeile.gewaehlt .betreff.lang { text-overflow: clip; }
.zeile:hover .betreff.lang span, .zeile.gewaehlt .betreff.lang span { display: inline-block; animation: laufen 9s linear infinite; }
.zeile .rest { font-size: 12px; font-weight: 600; color: var(--leise); white-space: nowrap; padding-right: 10px; }
.zeile .rest.knapp { color: var(--warn); }
.zeile .rest.ueber { color: var(--schlecht); }
.zeile .z2 { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--leise);
  flex-wrap: wrap; }
.zeile .z3 { margin-top: 3px; font-size: 12px; color: var(--sehrleise); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; }
.zaehler { display: inline-flex; align-items: center; gap: 3px; }
.zaehler .symbol { width: 13px; height: 13px; }
.marke-zustand { border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; background: var(--flaeche2);
  border: 1px solid var(--linie); color: var(--leise); }
.marke-zustand.z-neu { background: #e8f0fe; color: #1e4fb8; border-color: #c9dbfb; }
.marke-zustand.z-in_arbeit { background: #fff4e0; color: #8a4b00; border-color: #fbdca8; }
.marke-zustand.z-wartet { background: #f3eaff; color: #6b34b8; border-color: #e0cdfb; }
.marke-zustand.z-erledigt, .marke-zustand.z-geschlossen { background: var(--guthell); color: var(--gut); border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .marke-zustand.z-neu { background: #1a2a44; color: #9fc0ff; border-color: transparent; }
  .marke-zustand.z-in_arbeit { background: #3a2a10; color: #ffcf85; border-color: transparent; }
  .marke-zustand.z-wartet { background: #2d1f44; color: #d1b3ff; border-color: transparent; }
}
.kuerzel { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px;
  font-weight: 700; background: var(--markehell); color: var(--marke); margin-left: -4px; border: 2px solid var(--flaeche); }
.kuerzel:first-child { margin-left: 0; }
.uebernehmen { position: absolute; right: 10px; bottom: 8px; opacity: 0; transition: opacity .15s; }
.zeile:hover .uebernehmen, .zeile.gewaehlt .uebernehmen { opacity: 1; }
.fortschritt { display: inline-block; width: 36px; height: 5px; background: var(--linie); border-radius: 3px; overflow: hidden;
  vertical-align: middle; }
.fortschritt i { display: block; height: 100%; background: var(--gut); }
.zeilen .mehr { width: 100%; margin: 6px 0 18px; }
.leer { text-align: center; padding: 48px 20px; color: var(--leise); }
.leer > svg { width: 120px; height: 120px; margin-bottom: 10px; }
.leer h3 { color: var(--text); margin: 6px 0; font-size: 18px; }
.p1 { --p: var(--p1); } .p2 { --p: var(--p2); } .p3 { --p: var(--p3); } .p4 { --p: var(--p4); }
.p5 { --p: var(--p5); } .p6 { --p: var(--p6); } .p7 { --p: var(--p7); }
.zeile .balken { background: var(--p); }
.zeile.p1:not(.fertig) .balken { animation: pulsbalken 1.8s ease-in-out infinite; }
.prio-chip.an { background: var(--p); }
.prio-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--p); }

/* ---------- Ticketansicht */
.ticket { flex: 1; overflow-y: auto; min-width: 0; }
.ticket-kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 16px 22px 12px; position: sticky; top: 0; z-index: 5; }
.ticket-kopf .z1 { display: flex; gap: 10px; align-items: flex-start; }
.ticket-kopf h1 { font-size: 21px; margin: 0; flex: 1; line-height: 1.25; cursor: text; border-radius: 6px; padding: 2px 4px; margin-left: -4px; }
.ticket-kopf h1:hover { background: var(--flaeche2); }
.ticket-kopf .titelfeld { flex: 1; font-size: 19px; font-weight: 700; }
.ticket-kopf .nummer { font-size: 12px; color: var(--sehrleise); margin-top: 2px; }
.zurueck { display: none; }
.leiste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.feld { display: flex; flex-direction: column; gap: 2px; background: var(--flaeche2); border: 1px solid var(--linie);
  border-radius: 9px; padding: 5px 9px; min-width: 0; }
.feld > span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--sehrleise); font-weight: 600; }
.feld select { border: 0; background: transparent; padding: 0; min-height: 22px; font-weight: 600; box-shadow: none; }
.feld .wert { font-weight: 600; font-size: 13px; white-space: nowrap; }
.feld.prio { border-left: 4px solid var(--p); }
.feld .chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.minichip { display: inline-flex; align-items: center; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie2);
  border-radius: 12px; padding: 1px 4px 1px 8px; font-size: 12px; font-weight: 600; }
.minichip button { border: 0; background: transparent; cursor: pointer; color: var(--sehrleise); padding: 0 3px; font-size: 14px; line-height: 1; }
.minichip button:hover { color: var(--schlecht); }
.plus { border: 1px dashed var(--linie2); background: transparent; border-radius: 12px; font-size: 12px; padding: 1px 8px;
  cursor: pointer; color: var(--leise); }
.plus:hover { border-color: var(--marke2); color: var(--marke); }
.zustaende { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.aktionen { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.reiter { display: flex; gap: 2px; padding: 0 18px; background: var(--flaeche); border-bottom: 1px solid var(--linie);
  overflow-x: auto; position: sticky; z-index: 4; }
.reiter button { border: 0; background: transparent; padding: 11px 12px; cursor: pointer; color: var(--leise); font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.reiter button.an { color: var(--marke); border-bottom-color: var(--marke); }
.reiter .anz { background: var(--flaeche2); border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.bereich { padding: 18px 22px 40px; max-width: 980px; }

/* Notizen */
.notiz { background: var(--flaeche); border-radius: var(--rund2); box-shadow: var(--schatten); padding: 12px 16px; margin-bottom: 12px;
  animation: einblenden .25s ease-out; }
.notiz.privat { border: 1px dashed var(--akzent); }
.notiz .kopf { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--leise); margin-bottom: 6px; }
.notiz .kopf b { color: var(--text); font-size: 13px; }
.notiz .kopf .rechts { margin-left: auto; display: flex; gap: 4px; }
.notiz .text { overflow-wrap: anywhere; }
.notiz .text p { margin: 0 0 8px; } .notiz .text p:last-child { margin-bottom: 0; }
.fassungen { margin-top: 10px; border-top: 1px dashed var(--linie2); padding-top: 8px; font-size: 13px; }
.fassungen .alt { color: var(--leise); margin-bottom: 8px; }
.marke-klein { font-size: 11px; border-radius: 8px; padding: 0 6px; background: var(--flaeche2); border: 1px solid var(--linie); }
.marke-klein.privat { background: #fff7e6; border-color: #f7d48c; color: #8a5a00; }
mark { border-radius: 3px; padding: 0 2px; color: inherit; background: var(--gelb); }
mark[data-farbe="rot"] { background: var(--rot); } mark[data-farbe="gruen"] { background: var(--gruen); }

/* Editor */
.editor { background: var(--flaeche); border: 1px solid var(--linie2); border-radius: var(--rund2); overflow: hidden;
  transition: box-shadow .15s, border-color .15s; }
.editor:focus-within { border-color: var(--marke2); box-shadow: 0 0 0 3px var(--markehell); }
.werkzeuge { display: flex; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--linie); background: var(--flaeche2); flex-wrap: wrap; }
.werkzeuge button { border: 0; background: transparent; border-radius: 6px; min-width: 30px; height: 30px; cursor: pointer;
  font-weight: 700; color: var(--leise); }
.werkzeuge button:hover { background: var(--flaeche); color: var(--text); }
.werkzeuge .farbe { width: 22px; min-width: 22px; height: 22px; border-radius: 50%; margin: 4px 2px; border: 2px solid var(--flaeche); box-shadow: 0 0 0 1px var(--linie2); }
.werkzeuge select { min-height: 30px; height: 30px; padding: 2px 6px; font-size: 13px; border-radius: 6px; margin-right: 4px; }
.werkzeuge .pfeil { min-width: 18px; padding: 0 2px; font-size: 11px; }
.werkzeuge .farbe:hover { transform: scale(1.15); }
.schriftknopf { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 800; }
.farbbalken { display: block; width: 16px; height: 4px; border-radius: 2px; margin-top: 2px; }
.farbwahl { position: fixed; z-index: 60; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px;
  box-shadow: var(--schatten2); padding: 10px; animation: blende .1s; }
.farbwahl .farbtitel { font-size: 11px; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.matrix { display: grid; grid-template-columns: repeat(10, 22px); gap: 3px; }
.matrix button { width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); cursor: pointer; padding: 0; }
.matrix button:hover { transform: scale(1.25); box-shadow: 0 2px 6px rgba(0,0,0,.3); position: relative; z-index: 1; }
.farbwahl .ohne { margin-top: 8px; width: 100%; border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 6px; padding: 4px; cursor: pointer; font-size: 12px; }
/* eingefuegte Inhalte: Layout wie im Original, aber nie breiter als die Spalte */
.notiz .text, .schreibfeld { overflow-x: auto; }
.notiz .text img, .schreibfeld img { max-width: 100%; height: auto; }
.notiz .text table, .schreibfeld table { max-width: 100%; }
.notiz .text h1, .schreibfeld h1 { font-size: 1.7em; margin: .4em 0; } .notiz .text h2, .schreibfeld h2 { font-size: 1.45em; margin: .4em 0; }
.notiz .text h3, .schreibfeld h3 { font-size: 1.25em; margin: .4em 0; } .notiz .text h4, .schreibfeld h4 { font-size: 1.1em; margin: .4em 0; }
.notiz .text h5, .schreibfeld h5 { font-size: 1em; margin: .4em 0; }
.notiz .text blockquote, .schreibfeld blockquote { border-left: 3px solid var(--linie2); margin: .5em 0; padding-left: 12px; color: var(--leise); }
.notiz .text pre, .schreibfeld pre { background: var(--flaeche2); padding: 8px 10px; border-radius: 6px; white-space: pre-wrap; }
.werkzeuge .trenner { width: 1px; background: var(--linie2); margin: 4px 4px; }
.schreibfeld { min-height: 90px; max-height: 50vh; overflow-y: auto; padding: 10px 14px; outline: none; overflow-wrap: anywhere; }
.schreibfeld:empty::before { content: attr(data-platzhalter); color: var(--sehrleise); }
.schreibfeld p { margin: 0 0 6px; }
.editor .fuss { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-top: 1px solid var(--linie); font-size: 13px; }
.editor .fuss .rechts { margin-left: auto; display: flex; gap: 6px; }
.schalter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--leise); user-select: none; }

/* Chat */
.chatspalte { width: 340px; flex: none; border-left: 1px solid var(--linie); background: var(--flaeche); display: flex; flex-direction: column; }
.chatspalte h3 { margin: 0; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 8px; }
.chatverlauf { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.blase { max-width: 85%; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 14px 14px 14px 4px;
  padding: 7px 11px; animation: einblenden .2s ease-out; overflow-wrap: anywhere; }
.blase.ich { align-self: flex-end; background: var(--markehell); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.blase .wer { font-size: 11px; color: var(--leise); font-weight: 600; margin-bottom: 2px; }
.chateingabe { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--linie); }
.chateingabe input { flex: 1; }

/* Anhaenge */
.ablage { border: 2px dashed var(--linie2); border-radius: var(--rund2); padding: 20px; text-align: center; color: var(--leise);
  margin-bottom: 16px; transition: all .15s; cursor: pointer; }
.ablage.drueber { border-color: var(--marke2); background: var(--markehell); color: var(--marke); }
.anhaenge { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.anhang { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); overflow: hidden; text-decoration: none;
  color: var(--text); display: flex; flex-direction: column; }
.anhang .vorschau { height: 110px; background: var(--flaeche2); display: grid; place-items: center; overflow: hidden; color: var(--sehrleise); }
.anhang .vorschau img { width: 100%; height: 100%; object-fit: cover; }
.anhang .vorschau .typ { font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.anhang .info { padding: 8px 10px; font-size: 12px; }
.anhang .info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang .info span { color: var(--leise); }

/* Listen in Bereichen */
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th, .tabelle td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linie); font-size: 13px; vertical-align: top; }
.tabelle th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sehrleise); background: var(--flaeche2); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klickbar { cursor: pointer; } .tabelle tr.klickbar:hover td { background: var(--flaeche2); }
.verlauf li { margin-bottom: 8px; font-size: 13px; } .verlauf li span { color: var(--leise); }
.formular { display: grid; gap: 12px; }
.formular label { font-weight: 600; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.formular label.schalter { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.formular label.schalter.chip { padding: 4px 12px; }
.formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kasten { background: var(--flaeche); border-radius: var(--rund2); box-shadow: var(--schatten); padding: 16px 18px; margin-bottom: 16px; }
.kasten h3 { margin: 0 0 12px; font-size: 15px; }
.seitenkopf { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seitenkopf h2 { margin: 0; font-size: 20px; }
.summe { font-size: 28px; font-weight: 800; color: var(--marke); }

/* Prioritaetswahl im Dialog */
.prioritaeten { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.prioritaeten button { border: 2px solid var(--linie); background: var(--flaeche); border-radius: 10px; padding: 8px 2px 6px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--leise); }
.prioritaeten button b { font-size: 17px; color: var(--p); }
.prioritaeten button.an { border-color: var(--p); background: var(--p); color: #fff; }
.prioritaeten button.an b { color: #fff; }

/* Dialoge, Schubladen, Meldungen */
.schleier { position: fixed; inset: 0; background: rgba(15,20,25,.45); z-index: 50; display: grid; place-items: center; padding: 16px;
  animation: blende .15s ease-out; }
.dialog { background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten2); width: 100%; max-width: 640px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: hoch .2s ease-out; }
.dialog.schmal { max-width: 420px; }
.dialog .dkopf { padding: 16px 20px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; }
.dialog .dkopf h2 { margin: 0; font-size: 17px; flex: 1; }
.dialog .dinhalt { padding: 18px 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.dialog .dfuss { padding: 12px 20px; border-top: 1px solid var(--linie); display: flex; gap: 8px; justify-content: flex-end; flex: none;
  background: var(--flaeche); border-radius: 0 0 16px 16px; }
.dialog .dkopf { flex: none; }
.dkopf-haupt { display: none; margin-right: 4px; }
.auswahl { position: fixed; z-index: 60; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px;
  box-shadow: var(--schatten2); min-width: 220px; max-height: 320px; overflow-y: auto; padding: 4px; animation: blende .1s; }
.auswahl input { width: calc(100% - 8px); margin: 4px; }
.auswahl button { display: flex; width: 100%; border: 0; background: transparent; padding: 7px 10px; text-align: left; cursor: pointer;
  border-radius: 6px; gap: 8px; align-items: center; }
.auswahl button:hover, .auswahl button.fokus { background: var(--flaeche2); }
.schublade { position: fixed; top: 56px; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--flaeche);
  box-shadow: var(--schatten2); z-index: 40; display: flex; flex-direction: column; animation: rein .2s ease-out; }
.schublade h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; }
.schublade h3 .knopf { margin-left: auto; }
.feed { overflow-y: auto; flex: 1; padding: 8px; }
.ereignis { display: flex; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.ereignis:hover { background: var(--flaeche2); }
.ereignis .was { font-size: 13px; min-width: 0; }
.ereignis .was b { font-weight: 600; }
.ereignis .was div { color: var(--leise); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ereignis .wann { font-size: 11px; color: var(--sehrleise); white-space: nowrap; margin-left: auto; }
#meldungen { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column;
  gap: 8px; align-items: center; pointer-events: none; }
.meldung { background: #1d2733; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--schatten2); font-weight: 500;
  animation: hoch .2s ease-out; display: flex; gap: 8px; align-items: center; }
.meldung.fehler { background: var(--schlecht); }
.meldung.gut::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gut); font-weight: 800; animation: knall .35s ease-out; }
.menue { position: absolute; right: 12px; top: 52px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px;
  box-shadow: var(--schatten2); min-width: 220px; padding: 6px; z-index: 45; animation: blende .12s; }
.menue .wer { padding: 8px 10px 10px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; font-size: 13px; }
.menue .wer small { color: var(--leise); display: block; }
.menue button { display: flex; width: 100%; gap: 10px; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; text-align: left; align-items: center; }
.menue button:hover { background: var(--flaeche2); }

/* ---------- Versionen */
del { background: #ffe0e0; color: #9b1c1c; text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
ins { background: #dcf7e3; color: #11602c; text-decoration: none; border-radius: 3px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { del { background: #4a1f1f; color: #ffb3b3; } ins { background: #173d24; color: #a8f0bd; } }
.diff { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 6px 0; }
.versionenhinweis { border: 0; background: var(--markehell); color: var(--marke); font-weight: 600; font-size: 12px; border-radius: 12px;
  padding: 2px 10px; cursor: pointer; margin: 4px 0 2px; }
.versionenhinweis:hover { filter: brightness(.96); }
.zeitleiste { border-left: 2px solid var(--linie2); margin-left: 10px; padding-left: 16px; }
.version { position: relative; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: 10px 14px; margin-bottom: 10px; }
.version::before { content: ""; position: absolute; left: -24px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--marke2); border: 2px solid var(--grund); }
.version.v-notiz::before { background: var(--p5); } .version.v-chat::before { background: var(--akzent); } .version.v-anhang::before { background: var(--p6); } .version.v-zeit::before { background: var(--gut); } .version.v-zugriff::before { background: var(--sehrleise); }
.version.v-zugriff { padding: 6px 14px; box-shadow: none; background: var(--flaeche2); } .version.v-zugriff .kopf { margin: 0; }
.version .kopf { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 6px; flex-wrap: wrap; }
.version .kopf .rechts { margin-left: auto; }
.feldwechsel { font-size: 13px; margin: 3px 0; }
.text.vorschau { max-height: 160px; overflow: hidden; font-size: 13px; color: var(--leise); }
.fassung-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.alte-fassung { flex-basis: 100%; border: 1px dashed var(--linie2); border-radius: 8px; padding: 8px 10px; margin-top: 6px; background: var(--flaeche2); }
.knopf.geaendert { color: var(--marke); }

/* ---------- Kleinigkeiten */
.leise { color: var(--leise); font-size: 13px; }
.abstand { flex: 1; }
.abstand-oben { height: 14px; }
.fuellen { flex: 1; min-width: 0; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.knopf.an { color: var(--marke); }
.haupt.voll { grid-template-columns: 236px 1fr; }
.haupt.voll .liste { display: none; }
.rest.knapp { color: var(--warn); } .rest.ueber { color: var(--schlecht); }

/* ---------- Bewegung (sparsam, mit Zweck) */
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hoch { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blende { from { opacity: 0; } to { opacity: 1; } }
@keyframes rein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes puls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .7; } }
@keyframes pulsbalken { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes aufleuchten { 0% { background: var(--markehell); } 100% { background: var(--flaeche); } }
@keyframes knall { 0% { transform: scale(.3); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes laufen { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--weite, -50%)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Schmalere Bildschirme */
@media (max-width: 1500px) { .chatspalte { display: none; } }
@media (max-width: 1100px) {
  .haupt { grid-template-columns: minmax(300px, 400px) 1fr; }
  .seite { position: fixed; top: 56px; left: 0; bottom: 0; width: 270px; z-index: 30; box-shadow: var(--schatten2);
    transform: translateX(-105%); transition: transform .2s; }
  .seite.offen { transform: none; }
  .menuknopf { display: inline-flex; }
  .haupt.voll { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .oben { gap: 6px; padding: 0 8px; }
  .oben .marke span { display: none; }
  .oben .neu-text { display: none; }
  .haupt { grid-template-columns: 1fr; }
  .liste { border-right: 0; }
  .detail { position: fixed; inset: 56px 0 0 0; z-index: 25; transform: translateX(100%); transition: transform .22s ease-out; }
  .detail.offen { transform: none; }
  .zurueck { display: inline-flex; }
  .ticket-kopf { padding: 12px 14px 10px; position: static; }
  .reiter { top: 0 !important; }
  .leiste .feld { flex: 1 1 calc(50% - 8px); }
  .leiste .feld.prio, .leiste .feld:nth-child(2) { flex-basis: 100%; }
  .ticket-kopf h1 { font-size: 18px; }
  .bereich { padding: 14px 12px 40px; }
  .reiter { padding: 0 6px; }
  .uebernehmen { opacity: 1; position: static; margin-top: 6px; }
  .formular .zwei { grid-template-columns: 1fr; }
  .prioritaeten { grid-template-columns: repeat(4, 1fr); }
  /* Handy: Dialog fuellt genau den sichtbaren Bildschirm; Fusszeile fest unten, frei von den Navigationstasten */
  .schleier { padding: 0; align-items: stretch; }
  .dialog { max-width: none; border-radius: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; }
  .dialog .dkopf { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; gap: 8px; }
  .dialog .dinhalt { padding: 14px 12px; }
  .dialog .dfuss { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .dialog .dfuss .knopf { flex: 1; min-height: 48px; }
  .tabelle th:nth-child(n+4), .tabelle td:nth-child(n+4) { display: none; }
}

/* Rollen: gesperrt / beobachtend */
.rollen-hinweis { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: #e8efff; color: #1e3f8f; font-size: 13px; line-height: 1.4; }
.rollen-hinweis .symbol { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bearbeiter-marke { display: inline-flex; align-items: center; gap: 2px; color: var(--leise); }
.bearbeiter-marke .symbol { width: 13px; height: 13px; }
.feld .wert .symbol { width: 14px; height: 14px; vertical-align: -2px; }
.feld .wert .plus { margin-left: 6px; }
@media (prefers-color-scheme: dark) { .rollen-hinweis { background: #1c2a4a; color: #c9d8ff; } }
.marke-klein.laeuft { background: #e4f6ea; color: #1d7a3d; margin-left: 6px; }
.tabelle tr.tagzeile td { border-top: 2px solid var(--linie2); padding-top: 8px; }
@media (prefers-color-scheme: dark) { .marke-klein.laeuft { background: #173d24; color: #a8f0bd; } }
.kennzahlen { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.kennzahl { display: flex; flex-direction: column; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 14px; min-width: 140px; }
.kennzahl span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sehrleise); font-weight: 600; }
.kennzahl b { font-size: 22px; color: var(--marke); }
.tabelle tr.tat td { font-size: 12.5px; color: var(--leise); padding-top: 2px; padding-bottom: 2px; padding-left: 28px; white-space: normal; }
.tabelle tr.tat .uhrzeit { font-variant-numeric: tabular-nums; color: var(--sehrleise); }
.version .quelle, .notiz .quelle { font-size: 11.5px; color: var(--sehrleise); margin-top: 4px; }

/* Matrix Benutzer x Gruppen (fuer viele Gruppen: senkrechte Koepfe, feste Namensspalte und Kopfzeile) */
.matrix-werkzeuge { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.matrix-werkzeuge input[type=search] { width: 200px; }
.matrix-werkzeuge input[type=text] { flex: 1 1 260px; }
.matrix-rollen { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
.mx-tabelle { border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: auto; }
.mx-tabelle th, .mx-tabelle td { border-bottom: 1px solid var(--linie); border-right: 1px solid var(--linie); padding: 0; }
.mx-tabelle thead th { position: sticky; top: 0; z-index: 2; background: var(--flaeche2); }
.mx-tabelle th.mx-name, .mx-tabelle th.mx-ecke { position: sticky; left: 0; z-index: 1; background: var(--flaeche); text-align: left; padding: 6px 10px; white-space: nowrap; min-width: 240px; font-weight: 400; }
.mx-tabelle thead th.mx-ecke { z-index: 3; background: var(--flaeche2); font-weight: 600; color: var(--leise); vertical-align: bottom; }
.mx-tabelle th.mx-senk { height: 150px; min-width: 36px; width: 36px; vertical-align: bottom; padding: 6px 0; text-align: center; }
.mx-tabelle th.mx-senk span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; max-height: 128px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12.5px; }
.mx-tabelle th.mx-senk small { display: block; font-size: 10px; color: var(--sehrleise); font-weight: 400; margin-top: 4px; }
.mx-tabelle td.mx-zelle { min-width: 36px; width: 36px; height: 32px; text-align: center; color: var(--marke); font-size: 16px; cursor: help; }
.mx-tabelle td.mx-zelle.mx-aenderbar { cursor: pointer; }
.mx-tabelle td.mx-zelle.mx-aenderbar:hover { outline: 2px solid var(--marke); outline-offset: -2px; }
.mx-tabelle td.mx-anzahl, .mx-tabelle th.mx-anzahl { min-width: 44px; text-align: center; color: var(--leise); font-size: 12px; }
.mx-tabelle tr.mx-gesperrt th.mx-name, .mx-tabelle tr.mx-gesperrt td { opacity: .5; }
.mx-tabelle th.mx-name .marke-klein { margin-left: 6px; }
.mx-tabelle thead { display: table-header-group; }
.mx-tabelle tbody { display: table-row-group; height: auto; }
.mx-tabelle tr { display: table-row; }

/* Tabelle mit Sortieren und Filtern (Protokolle) */
.lt-info { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; font-size: 12.5px; }
.lt-rollen { overflow: auto; max-height: calc(100vh - 260px); border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
.lt-tabelle { margin: 0; width: 100%; }
.lt-tabelle.mit-details { min-width: 1100px; }
.lt-tabelle thead th { position: sticky; top: 0; z-index: 1; background: var(--flaeche2); vertical-align: top; white-space: nowrap; }
.lt-sort { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 0; color: inherit; }
.lt-sort:hover { color: var(--marke); }
.lt-filter { display: block; margin-top: 4px; font-size: 11.5px; padding: 1px 4px; min-height: 0; max-width: 150px; font-weight: 400; }
.lt-filter.an { border-color: var(--marke); background: var(--markehell); }
.lt-tabelle td { vertical-align: top; }
.lt-tabelle td.lt-breit { min-width: 320px; }
.lt-tabelle td.uhrzeit { white-space: nowrap; }
.ip-land { display: inline-flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.ip-land .land { font-weight: 600; }
.fahne { font-family: "Twemoji Country Flags", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
/* ganze Seiten (Verwaltung, Zeitbericht): volle Breite fuer breite Tabellen */
.haupt.voll .bereich { max-width: none; }

/* ============================================================ Regler Einfach / Advanced */
.modus-regler { display: inline-flex; border: 2px solid var(--marke); border-radius: 999px; padding: 2px; background: var(--flaeche); cursor: pointer; font: inherit; }
.modus-regler span { padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--marke); }
.modus-regler span.an { background: var(--marke); color: #fff; }
.modus-regler:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* ============================================================ Einfache Ansicht (barrierefrei)
   Auf dem Handy genauso wie am PC: kompakt, nichts verschwendet, Fingerflaechen trotzdem mind. 44 px.
   Schrift in Eingabefeldern 16 px, sonst vergroessert iOS die Seite beim Antippen. */
#app.einfach { display: block; min-height: 100vh; background: var(--grund); font-size: 16px; line-height: 1.4; color: var(--text);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }   /* clip statt hidden: sonst haelt "sticky" die Kopfzeile nicht fest */
.einfach :focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.e-kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.e-marke { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.05; min-width: 0; }
.e-marke img { width: 38px; height: 38px; flex: none; }   /* Logo, daneben "Aufgaben" / "Manager" zweizeilig (Frank 2026-10-31) */
@media (max-width: 600px) { .e-marke { gap: 8px; } .e-marke img { width: 32px; height: 32px; } .glocke .komm-zeichen { width: 40px; height: 40px; } }
.e-rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.e-haupt { max-width: 860px; margin: 0 auto; padding: 12px 12px 48px; outline: none; }
.e-knopf { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--marke); background: var(--marke); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; }
.e-knopf.flach, .e-knopf.zweit { background: var(--flaeche); color: var(--marke); }
.e-knopf.gut { background: var(--gut); border-color: var(--gut); }
.e-knopf.gross { min-height: 48px; }
.e-knopf.gesperrt { opacity: .5; cursor: help; }
.e-filter { display: flex; gap: 10px; margin-bottom: 4px; }
.e-wahl { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; font-weight: 600; font-size: 12px; color: var(--leise); }
.e-wahl select { width: 100%; min-height: 44px; font-size: 16px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--linie2);
  background: var(--flaeche); color: var(--text); text-overflow: ellipsis; }
.e-abschnitt { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin: 16px 2px 6px; line-height: 1.3; }
.e-abschnitt.e-meins1, .e-abschnitt.e-prio1 { color: var(--p1); }
.e-liste { display: flex; flex-direction: column; gap: 8px; }
.e-karte { background: var(--flaeche); border: 2px solid var(--linie); border-left: 8px solid var(--p); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; box-shadow: var(--schatten); }
.e-karte:hover { border-color: var(--marke2); border-left-color: var(--p); }
.e-karte.deins { background: #fffdf3; }
.e-karte.offen { border-color: var(--marke); border-left-color: var(--p); box-shadow: var(--schatten2); }
.e-titel { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.e-signale { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; }
.e-signale > span { padding: 2px 9px; border-radius: 999px; background: var(--flaeche2); border: 1px solid var(--linie2); font-weight: 600; white-space: nowrap; }
.e-marke-meins { background: #fff1a8 !important; border-color: #e0c94a !important; color: #5a4700; }
.e-prio { color: var(--p); border-color: var(--p) !important; }
.e-ueber { background: var(--schlecht) !important; color: #fff; border-color: var(--schlecht) !important; }
.e-frist { color: var(--leise); }
.e-details { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie); font-size: 15px; }
.e-zeile { display: flex; gap: 10px; padding: 2px 0; }
.e-zeile span { flex: 0 0 72px; color: var(--leise); }
.e-letzt { margin-top: 6px; color: var(--leise); font-size: 14px; }
.e-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.e-knoepfe .e-knopf { flex: 1 1 140px; }
.e-mehr { display: block; width: 100%; margin-top: 10px; min-height: 44px; border: 2px dashed var(--linie2); border-radius: 10px; background: none;
  font: inherit; color: var(--marke); font-weight: 600; cursor: pointer; }
.e-leer { padding: 12px 14px; background: var(--flaeche); border-radius: 10px; color: var(--leise); }
.e-zurueck { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--markehell); color: var(--marke); font: inherit; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; }
.e-ticket { background: var(--flaeche); border: 2px solid var(--linie); border-left: 8px solid var(--p); border-radius: 12px; padding: 14px; }
.e-tickettitel { font-size: 20px; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.e-zustand, .e-wer-hat { color: var(--text); }
.e-hinweis { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #e8efff; color: #1e3f8f; font-size: 15px; }
.e-notiz { border-top: 1px solid var(--linie); padding: 10px 0; }
/* Einfache Ansicht: jede Notiz ein eigener Kasten, abwechselnd weiss und ganz leicht getoent (Frank 2026-11-03 22:36: "besser optisch getrennt") */
.e-haupt .e-notiz { border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px; margin: 10px 0; background: var(--flaeche); }
/* Ticket als Einheit (Frank 2026-11-05 21:11): Rahmen und Grund in leichtem Gold, Notizen abwechselnd zwei Goldtoene, kein Weiss */
:root { --tgrund: #fcf7e9; --tnotiz-a: #f7edd2; --tnotiz-b: #efdfb2; --tnotizrand: #d8c184; }
@media (prefers-color-scheme: dark) { :root { --tgrund: #1d180c; --tnotiz-a: #2a2310; --tnotiz-b: #362c13; --tnotizrand: #5a4a22; } }
.e-haupt .e-ticket { background: var(--tgrund); border: 2px solid var(--marke2); border-left: 8px solid var(--p); }
.e-haupt .e-notiz.a { background: var(--tnotiz-a); border-color: var(--tnotizrand); }
.e-haupt .e-notiz.b { background: var(--tnotiz-b); border-color: var(--tnotizrand); }
.e-haupt .e-notiz { scroll-margin-top: calc(var(--ekopf, 56px) + 96px); }
.e-tkopf { position: sticky; top: var(--ekopf, 56px); z-index: 4; background: var(--tgrund); margin: -14px -14px 10px; padding: 10px 14px 0;
  border-bottom: 1.5px solid var(--marke2); border-radius: 10px 10px 0 0; }
.e-tkopf-zeile { display: flex; align-items: center; gap: 8px; }
.e-tkopf .e-tickettitel { flex: 1; min-width: 0; margin: 0; font-size: 18px; }
.e-tkopf .e-titelfeld { flex: 1; min-width: 0; }
.e-reiterleiste { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.e-reiterleiste::-webkit-scrollbar { display: none; }
.e-reiter, #app.einfach .e-reiter { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 4px 10px; font-size: 13.5px;
  color: var(--marke); background: transparent; border: 1.5px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; white-space: nowrap; cursor: pointer; }
.e-reiter:hover { background: var(--tnotiz-a); }
.e-reiter.an { background: var(--tnotiz-a); border-color: var(--marke2); font-weight: 700; }
.e-reiter small { font-size: 11px; opacity: .75; }
@media (max-width: 420px) { .e-reiter, #app.einfach .e-reiter { padding: 4px 7px; font-size: 12.5px; } .e-tkopf .e-tickettitel { font-size: 16px; }
  .e-reiter:not(.an) .e-reiter-name { display: none; } }   /* Handy: alle Reiter in einer Zeile - Zeichen und Zahl, der aktive mit Namen */
.e-ticket-chat .e-chat { max-height: calc(100dvh - 300px); }
.e-notiz .e-text { overflow-wrap: anywhere; }
.e-notiz .e-text img, .e-notiz .e-text table { max-width: 100%; height: auto; }
.e-wer { font-size: 13px; color: var(--leise); margin-bottom: 2px; }
.e-schreiben { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.e-schreiben textarea, .e-chateingabe input { font: inherit; font-size: 16px; padding: 10px; border: 2px solid var(--linie2); border-radius: 10px; min-height: 44px; min-width: 0; }
.e-advanced-link { margin-top: 16px; text-align: right; }
.e-link { background: none; border: 0; color: var(--marke); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; }
.e-chat { display: flex; flex-direction: column; gap: 8px; max-height: calc(100dvh - 250px); overflow-y: auto; padding: 6px 0; }
.e-blase { max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--flaeche); border: 1px solid var(--linie); overflow-wrap: anywhere; }
.e-blase.ich { align-self: flex-end; background: var(--markehell); border-radius: 14px 14px 4px 14px; }
.e-chateingabe { display: flex; gap: 8px; margin-top: 10px; }
.e-chateingabe input { flex: 1; }
.e-prio .kurz { display: none; }
.modus-regler { min-height: 40px; align-items: center; }
@media (max-width: 480px) {
  .e-prio .lang { display: none; }
  .e-prio .kurz { display: inline; }
  .e-signale { font-size: 12.5px; gap: 5px; }
  .e-signale > span { padding: 2px 7px; }
}
@media (max-width: 560px) {
  .e-weg-schmal, .e-marke span { display: none; }
  .e-kopf { padding: 6px 8px; }
  .e-haupt { padding: 8px 8px 40px; }
  .modus-regler span { padding: 4px 8px; font-size: 12px; }
  .e-knopf { padding: 0 10px; }
}
@media (prefers-color-scheme: dark) {
  .e-karte.deins { background: #2a2615; }
  .e-marke-meins { background: #5a4a00 !important; color: #fff6c0; border-color: #8a7400 !important; }
  .e-hinweis { background: #1c2a4a; color: #c9d8ff; }
}
.prio-tabelle input[type=text] { width: 100%; max-width: 260px; }
.prio-tabelle .prio-zahl { width: 90px; }
.prio-tabelle td { vertical-align: middle; }

.prio-speichern { margin: 14px 0 6px; max-width: 640px; }
@media (max-width: 760px) { .dkopf-haupt { display: inline-flex; } }
/* einfache Ansicht: Suche fest unter der Kopfzeile */
.e-kopf { flex-wrap: wrap; }
/* Kopfzeile und Suche so breit wie die Seite darunter, auch am PC (Frank 2026-10-31: einheitlich, nicht ueber den ganzen Bildschirm) */
.e-kopf { max-width: 860px; margin: 0 auto; }
@media (min-width: 861px) { .e-kopf { border: 1px solid var(--linie); border-top: 0; border-radius: 0 0 14px 14px; } }
.e-suche { flex: 1 0 100%; }
.e-suche input { width: 100%; min-height: 44px; font-size: 16px; padding: 0 12px; border: 2px solid var(--linie2); border-radius: 10px; background: var(--flaeche2); }
.e-suche input:focus { border-color: var(--marke); background: var(--flaeche); }
.e-suchinfo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 2px 0; }
.e-suchinfo .e-link { min-height: 44px; }
/* einfache Ansicht: Bezuege im Ticket */
/* Advanced auf schmalen Handys: Kopfleiste passt mit Regler (Regel: Umschalter immer oben sichtbar) */
@media (max-width: 430px) {
  .oben { gap: 3px; padding: 0 4px; }
  .oben .rechts { gap: 3px; }
  .oben .modus-regler span { padding: 4px 6px; }
  .oben .kopfbild { width: 34px; height: 34px; }
  .oben .knopf { padding: 0 8px; }
}
@media (max-width: 380px) {
  .oben .kopfbild { width: 32px; height: 32px; }
  .oben .knopf { padding: 0 6px; }
  .oben .modus-regler span { padding: 4px 5px; }
}
/* Profilmenue in der einfachen Ansicht: bleibt beim Scrollen unter der Kopfzeile */
.e-menue { position: fixed; top: 58px; right: 8px; z-index: 30; min-width: 250px; }
.e-menue button { min-height: 44px; font-size: 16px; }
.e-menue .e-abmelden { color: var(--schlecht); }

/* Mehrfachauswahl Gruppen/Personen (klappt unter dem Feld auf, Handy zuerst) */
.mw { margin-top: 4px; }
.mw-feld { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; border: 2px solid var(--linie2); border-radius: 10px;
  background: var(--flaeche); font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.mw-feld.offen { border-color: var(--marke); }
.mw-wahl { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.mw-feld .leise { flex: 1; }
.mw-pfeil { color: var(--leise); font-size: 14px; }
.mw-liste { margin-top: 6px; border: 2px solid var(--marke); border-radius: 10px; padding: 8px; max-height: 55vh; max-height: 55dvh; overflow-y: auto; background: var(--flaeche); }
.mw-suche { width: 100%; min-height: 44px; font-size: 16px; padding: 0 10px; border: 1px solid var(--linie2); border-radius: 8px; margin-bottom: 6px; }
.mw-block { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); margin: 10px 4px 4px; font-weight: 600; }
.mw-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.mw-zeile:hover { background: var(--flaeche2); }
.mw-zeile.an { background: var(--markehell); font-weight: 600; }
.mw-zeile input { width: 20px; height: 20px; flex: none; }
.mw-fertig { position: sticky; bottom: 0; width: 100%; margin-top: 8px; min-height: 44px; }
.mw-leer { padding: 8px; }
.formular .mw-zeile, .mw .mw-zeile { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; font-weight: 400; color: var(--text); }
.formular .mw-zeile.an, .mw .mw-zeile.an { font-weight: 600; }

/* Fotos und Sprachnachrichten */
.e-medien { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.e-aufnahme { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.e-knopf.e-rot { background: var(--schlecht); border-color: var(--schlecht); }
.e-rec { color: var(--schlecht); font-weight: 700; animation: blinken 1s infinite; }
@keyframes blinken { 50% { opacity: .35; } }
.e-audio { width: 100%; max-width: 360px; height: 44px; }
.e-vorschau { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.e-vorschaubild { position: relative; }
.e-vorschaubild img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--linie2); display: block; }
.e-vorschaubild button { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--schlecht); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; }
.e-chatbild { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; margin-top: 4px; }
.blase .e-chatbild, .blase .e-audio { margin-top: 4px; }

/* ============================================================ Kommunikationszentrale (Stufe 1) */
.glocke { position: relative; min-width: 44px; min-height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 10px; padding: 0 6px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.glocke:hover { background: var(--flaeche2); }
.glocke-zahl { position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--p1); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.glocke-zahl:empty { display: none; }
.glocke.neu { animation: wackeln .6s ease-in-out 2; }
@keyframes wackeln { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.gespraeche { display: flex; flex-direction: column; gap: 6px; }
.gespraech { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 12px;
  background: var(--flaeche); text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.gespraech:hover { border-color: var(--marke2); }
.gespraech.neu { border-left: 5px solid var(--p1); background: #fffdf3; }
.gespraech-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gespraech-text b, .gespraech-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gespraech-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.gespraech .zahl { background: var(--p1); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.online-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gut); margin-right: 4px; vertical-align: middle; box-shadow: 0 0 0 2px var(--flaeche); }
.e-dabei { font-size: 13px; color: var(--leise); margin: 0 0 8px; line-height: 1.8; }
.e-person { display: inline-block; margin-right: 10px; color: var(--text); }
.nachricht-hinweis { cursor: pointer; text-align: left; border: 0; font: inherit; }
@media (prefers-color-scheme: dark) { .gespraech.neu { background: #2a2615; } }
/* Advanced-Kopfleiste schmal: Aktivitaet weicht der Glocke */
@media (max-width: 430px) { .oben .rechts .knopf.flach[aria-label="Aktivität"] { display: none; } }

/* ---------- Telefon (Kommunikationszentrale Stufe 2): gruener und roter Hoerer, Anrufleiste, Klingeln */
.hoerer { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 16px;
  font-weight: 600; color: #fff; cursor: pointer; min-height: 40px; box-shadow: var(--schatten); }
.hoerer.gruen { background: #16a34a; }
.hoerer.gruen:hover { background: #15803d; }
.hoerer.rot { background: #dc2626; }
.hoerer.rot:hover { background: #b91c1c; }
.hoerer.rot .hoerer-zeichen { transform: rotate(135deg); }
.hoerer.klein { padding: 4px 12px; min-height: 32px; font-size: 13px; margin-left: auto; }
.hoerer.gross { padding: 14px 22px; min-height: 56px; font-size: 16px; flex: 1; justify-content: center; }
.hoerer-zeichen { display: inline-block; filter: grayscale(1) brightness(10); }
.chatspalte h3 { display: flex; align-items: center; gap: 6px; }
.chat-anruf { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.e-anrufzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.e-anrufzeile .e-dabei { flex: 1; min-width: 0; }
.blase.vermerk, .e-blase.vermerk { align-self: center; background: transparent; border: 1px dashed var(--linie2);
  color: var(--leise); font-size: 13px; max-width: 92%; text-align: center; box-shadow: none; }
.anrufleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #2a2214; color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
body.im-anruf { padding-bottom: 72px; }
.anruf-titel { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; cursor: pointer;
  min-width: 0; max-width: 100%; padding: 4px 0; }
.anruf-titel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.anruf-titel .leise { color: #ecd9a8; }
.anruf-uhr { font-variant-numeric: tabular-nums; color: #ecd9a8; }
.anruf-leute { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.anruf-person { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.anruf-person.spricht { background: #22c55e; color: #052e16; font-weight: 600; }
.anruf-knoepfe { display: flex; gap: 8px; margin-left: auto; }
.anruf-knopf { width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff;
  font-size: 18px; cursor: pointer; }
.anruf-knopf.aus { background: #fbbf24; }
.klingel { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(10,20,16,.55); padding: 16px; }
.klingel-karte { background: var(--flaeche); color: var(--text); border-radius: var(--rund2); box-shadow: var(--schatten2);
  padding: 24px; width: min(420px, 100%); text-align: center; display: grid; gap: 10px; animation: klingel-puls 1.6s ease-in-out infinite; }
.klingel-wer { font-size: 20px; font-weight: 700; }
.klingel-titel { font-size: 16px; }
.klingel-knoepfe { display: flex; gap: 12px; margin-top: 8px; }
@keyframes klingel-puls { 0%, 100% { box-shadow: var(--schatten2); } 50% { box-shadow: 0 0 0 10px rgba(22,163,74,.25), var(--schatten2); } }
@media (prefers-reduced-motion: reduce) { .klingel-karte { animation: none; } }
@media (max-width: 600px) {
  /* zwei Zeilen: oben Ticket und Uhr, unten Teilnehmer und Knoepfe */
  .anrufleiste { gap: 6px 8px; }
  .anruf-titel { flex-basis: 100%; }
  .anruf-titel b { max-width: 70vw; }
  body.im-anruf { padding-bottom: 120px; }
}

/* ---------- Kommunikator wie Telegram (Etappe 1): Kontakte, Gespraech, Eingabe */
.k-suche { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--linie2); border-radius: 12px; background: var(--flaeche); margin: 4px 0 10px; }
.k-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--flaeche); }
.k-kontakt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.k-kontakt:last-child { border-bottom: 0; }
.k-kontakt:hover, .k-kontakt:focus-visible { background: var(--flaeche2); }
.k-kontakt[hidden] { display: none; }
.k-bild { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--markehell); color: var(--marke); font-weight: 700; font-size: 16px; }
.k-bild.gruppe { background: #ede9fe; color: #5b21b6; }
.k-bild.ticket { background: var(--gelb); font-size: 20px; }
.k-punkt { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid var(--flaeche); }
.k-mitte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.k-mitte b, .k-mitte .leise { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.k-rechts .zahl { background: var(--marke); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; min-width: 20px; text-align: center; }
.k-kontakt.neu b { font-weight: 800; }
.k-kopf { display: flex; align-items: center; gap: 12px; padding: 8px 0 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.k-verlauf { max-height: calc(100dvh - 300px); }
.k-zeit { font-size: 11px; color: var(--leise); text-align: right; margin-top: 2px; }
.k-aeltere { text-align: center; font-size: 12px; }
.k-eingabe { position: sticky; bottom: 0; background: var(--grund); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.k-status { font-size: 13px; color: var(--leise); min-height: 0; }
.k-status:not(:empty) { padding: 0 6px 6px; }
.k-zeile { display: flex; align-items: flex-end; gap: 8px; }
.k-feld { flex: 1; min-height: 60px; max-height: 140px; resize: none; padding: 18px 16px; border: 1px solid var(--linie2); border-radius: 30px;
  background: var(--flaeche); font: inherit; line-height: 1.4; }
/* Bueroklammer und Mikrofon gleich: weisser Kreis mit gruenem Ring, Zeichen gut sichtbar (Frank 2026-10-31: Mikrofon auf Gruen war kaum zu sehen) */
/* Zeichen fuellt den Kreis fast aus (ca. 3 px Abstand zum Ring), leicht plastisch (Frank: "dass man fast reinquatschen moechte") */
.k-rund { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--marke); color: var(--marke);
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #ffffff 45%, #efe6cf 100%);
  box-shadow: 0 3px 6px rgba(16, 24, 40, .22), inset 0 -3px 5px rgba(138, 106, 18, .16), inset 0 2px 2px rgba(255, 255, 255, .9);
  line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: transform .08s, box-shadow .08s; }
.k-rund > * { pointer-events: none; }
/* eigene Zeichen (SVG): gleich auf PC, iPhone und Android; gruen, Strich gut sichtbar */
.k-symbol { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.k-symbol .voll { fill: currentColor; }
/* Handy: Knoepfe kleiner, damit das Textfeld genug Platz hat (Frank 2026-10-31) */
@media (max-width: 600px) {
  .k-zeile { gap: 6px; }
  .k-rund { width: 46px; height: 46px; }
  .k-symbol { width: 27px; height: 27px; stroke-width: 2.2; }
  .k-feld { min-height: 46px; padding: 11px 14px; border-radius: 23px; }
  .k-aufnahme { min-height: 46px; border-radius: 23px; padding: 0 12px; }
}
.k-rund:hover, .k-rund:focus-visible { background: radial-gradient(circle at 35% 28%, #ffffff 0%, #fbf6e8 45%, #ecdcb2 100%); }
.k-rund:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(16, 24, 40, .25), inset 0 -1px 3px rgba(138, 106, 18, .2); }
.k-aufnahme { flex: 1; display: flex; align-items: center; min-height: 60px; padding: 0 16px; border-radius: 30px; background: var(--schlechthell); }
.k-rec { color: var(--schlecht); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .k-rec { animation: k-blinken 1.2s ease-in-out infinite; } }
@keyframes k-blinken { 50% { opacity: .45; } }
body.im-anruf .k-eingabe { bottom: 0; }

/* ---------- Wen anrufen? Namen antippen, erst dann wird der Hoerer gruen (Frank 2026-10-31) */
.anruf-auswahl { border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); padding: 8px 10px; margin: 6px 0 8px; }
.a-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a-text { flex: 1; min-width: 160px; font-size: 14px; color: var(--leise); }
.a-knoepfe { display: flex; gap: 8px; margin-left: auto; }
.a-leute { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.a-person { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border: 2px solid var(--linie2); border-radius: 6px;
  background: var(--flaeche); color: var(--text); font: inherit; cursor: pointer; }
/* markiert: wie das Logo - Gold, dunkler Goldrand, kaum gerundet (Frank 2026-11-01 21:27 GMT) */
.a-person.an { border-color: var(--gold-rand); background: var(--gold); color: var(--gold-schrift); font-weight: 700; }
.a-person.weg { color: var(--sehrleise); border-style: dashed; cursor: not-allowed; }
.a-person:disabled { cursor: not-allowed; }
.a-haken { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--linie2);
  background: var(--flaeche); color: #fff; font-size: 15px; font-weight: 800; flex: none; }
/* Haken wie das Logo im Kleinen: goldenes Feld, dunkler Goldrand, weisser Haken */
.a-person.an .a-haken { background: var(--gold); border-color: var(--gold-rand); }
.a-person.weg .a-haken { border-style: dashed; }
.hoerer.aus { background: #c4cbd3; color: #fff; box-shadow: none; }
.hoerer.aus:hover { background: #b3bbc4; }
.anruf-auswahl.blinken .a-person:not(.weg) { animation: a-blinken .9s ease-in-out 2; }
@keyframes a-blinken { 50% { border-color: var(--marke); box-shadow: 0 0 0 4px var(--markehell); } }
@media (prefers-reduced-motion: reduce) { .anruf-auswahl.blinken .a-person:not(.weg) { animation: none; border-color: var(--marke); } }

/* Anrufleiste: Verbindung je Teilnehmer (gruen gut, gelb schwach, rot unterbrochen) */
.anruf-person { display: inline-flex; align-items: center; gap: 5px; }
.anruf-guete { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.anruf-guete.gruen { background: #4ade80; }
.anruf-guete.gelb { background: #facc15; }
.anruf-guete.rot { background: #f87171; }
.anruf-person.weg { background: rgba(248, 113, 113, .25); color: #fecaca; }


/* ---------- Videokonferenz (Stufe 3): Bildfenster ueber der Anrufleiste, Kacheln je Kamera und Bildschirm */
.anruf-knopf .k-symbol { width: 22px; height: 22px; stroke-width: 2; }
.anruf-knopf.an { background: #22c55e; }
.hoerer .k-symbol { width: 20px; height: 20px; stroke-width: 2.2; }
.anruf-bild { position: fixed; left: 0; right: 0; bottom: 72px; z-index: 899; background: #1f190e; padding: 6px 8px 8px; max-height: 42vh; overflow-y: auto; }
.anruf-bild.gross { max-height: 78vh; }
@media (min-width: 861px) { .anruf-bild { left: 50%; right: auto; transform: translateX(-50%); width: 860px; border-radius: 14px 14px 0 0; } }
.bild-kopf { display: flex; justify-content: flex-end; }
.bild-knopf { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.bild-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; }
.anruf-bild.gross .bild-raster { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bild-kachel { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.bild-kachel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild-kachel.eigen video { transform: scaleX(-1); }
.bild-kachel.schirm { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.bild-kachel.schirm video { object-fit: contain; }
.bild-name { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
/* Handy: Namen in der Anrufleiste in einer Zeile (wischen), damit die Knoepfe Platz haben */
@media (max-width: 600px) {
  .anruf-leute { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .anruf-leute::-webkit-scrollbar { display: none; }
  .anruf-person { white-space: nowrap; flex: none; }
}

/* ---------- Unser Kommunikator-Zeichen: Sprechblase mit Hoerer, leuchtendes Gold (eine Farbe fuer alles: --komm) */
:root { --gold: #e2ae1c; --gold-rand: #7a5a08; --gold-schrift: #2e2100; --komm: var(--gold); --komm-rand: var(--gold-rand); }   /* EIN Gold ueberall: Logo, Zeichen, Knoepfe - kein Verlauf (Frank 2026-10-31) */   /* unsere zwei Markenfarben (Frank 2026-10-31) */   /* Blase in der Farbe des Logos, dunkler Goldrand, Hoerer weiss ausgespart (Frank 2026-10-31) */
.komm-zeichen { width: 30px; height: 30px; flex: none; display: block; overflow: visible; }
.komm-zeichen .k-blase { fill: var(--komm); stroke: var(--komm-rand); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.komm-zeichen .k-hoerer path { fill: none; stroke: #fff; stroke-width: 2.9; stroke-linecap: round; stroke-linejoin: round; }
.glocke-bild { position: relative; display: inline-flex; margin-right: 4px; }   /* Zahl ragt nur leicht in den Kreis */
.glocke .komm-zeichen { width: 44px; height: 44px; }   /* Frank: groesser; Hoerer links in der Blase, rechts Platz fuer die Zahl */
.komm-titel { display: inline-flex; align-items: center; gap: 8px; }
.komm-titel .komm-zeichen { width: 32px; height: 32px; }

/* Kopfzeile etwas kleiner (Frank 2026-10-31) - ausser dem Kommunikations-Zeichen; Fingerflaechen bleiben mind. 40 px */
.e-kopf .e-knopf { min-height: 40px; min-width: 40px; padding: 0 12px; font-size: 15px; }
.e-kopf .modus-regler { min-height: 36px; }
.e-kopf .modus-regler span { padding: 3px 10px; font-size: 12px; }
/* Handy: Kopfzeile einzeilig halten (steht am Ende, damit es die Groessen oben sicher ueberschreibt) */
@media (max-width: 600px) {
  .e-marke img { width: 32px; height: 32px; }
  .glocke .komm-zeichen { width: 40px; height: 40px; }
  .e-rechts { gap: 6px; }
}

/* ---------- Eine Linie (Frank 2026-10-31): Schalter, Neues Ticket, Profil und Logo in denselben zwei Farben wie das
   Kommunikations-Zeichen - warmes Gold mit dunklem Goldrand. Schrift auf Gold dunkel, damit sie gut lesbar bleibt. */
.e-kopf .modus-regler { border-color: var(--gold-rand); }
.e-kopf .modus-regler span { color: var(--gold-rand); }
.e-kopf .modus-regler span.an { background: var(--gold); color: var(--gold-schrift); }   /* innen nur Gold und Text - der dunkle Rand ist aussen */
.e-kopf .e-knopf { background: var(--gold); border-color: var(--gold-rand); color: var(--gold-schrift); }
.e-kopf .e-knopf.flach, .e-kopf .e-knopf.zweit { background: var(--flaeche); border-color: var(--gold-rand); color: var(--gold-rand); }

/* Kopfzeile: alle Bedienelemente gleich hoch; Logo und Profil-Knopf quadratisch und gleich gross (Frank 2026-10-31) */
:root { --kopf-h: 40px; }
.e-kopf .e-marke img { width: var(--kopf-h); height: var(--kopf-h); }
.e-kopf .e-knopf { height: var(--kopf-h); min-height: var(--kopf-h); padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.e-kopf .e-knopf.flach { width: var(--kopf-h); min-width: var(--kopf-h); padding: 0; }
.e-kopf .modus-regler { height: var(--kopf-h); min-height: var(--kopf-h); box-sizing: border-box; align-items: center; }
@media (max-width: 600px) {
  :root { --kopf-h: 36px; }
  .e-kopf .e-knopf:not(.flach) { width: var(--kopf-h); min-width: var(--kopf-h); padding: 0; }   /* am Handy nur "+" - quadratisch wie Profil */
}

/* Handy: keine Umschaltung auf "Erweitert" - die erweiterte Ansicht ist fuers Handy nicht geeignet (Frank 2026-10-31) */
@media (max-width: 600px) {
  .e-kopf .modus-regler, .e-advanced-link, .e-menue .nur-pc { display: none !important; }
}
@media (max-width: 600px) { .e-marke .e-marke-wort { display: inline; font-size: 14px; } }   /* ohne Schalter ist am Handy Platz fuer den Schriftzug */

/* Gespraech zu zweit: nur Name/online und die Knoepfe Anrufen und Video */
.anruf-auswahl.zweier { padding: 8px 10px; }

/* Messwerte in der Anrufleiste: Zahlen, nur der Paketverlust gefaerbt (Frank 2026-10-31) */
.mess { margin-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: #f3e6c4; white-space: nowrap; }
.mess-v.gut { color: #4ade80; font-weight: 700; }
.mess-v.schlecht { color: #f87171; font-weight: 700; }
/* Wer spricht: goldener Ring statt gruener Flaeche - sonst waere die gruene Verlustzahl darauf unsichtbar */
.anruf-person.spricht { background: rgba(255,255,255,.12); color: #fff; font-weight: 400; box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Anrufleiste neu (Frank 2026-10-31): oben Name und eigene Qualitaet (Balken wie beim Handy), Zahlen auf Antippen */
.anrufleiste { flex-wrap: wrap; row-gap: 6px; }
.anrufleiste .anruf-titel { flex: 1 1 auto; min-width: 0; }
.anrufleiste .anruf-titel b { max-width: none; }
.anruf-qualitaet { flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 4px 6px; }
.balken { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.balken i { display: block; width: 4px; border-radius: 1px; background: rgba(255,255,255,.25); }
/* vier Balken statt fuenf (Frank 2026-11-01 22:02 GMT): schmaler, gleich hoch */
.balken i:nth-child(1) { height: 6px; } .balken i:nth-child(2) { height: 10px; } .balken i:nth-child(3) { height: 14px; }
.balken i:nth-child(4) { height: 18px; }
.balken i.an { background: var(--gold); }
.anruf-qualitaet .mess-v { font-size: 13px; font-variant-numeric: tabular-nums; color: #f3e6c4; }
.anruf-details { flex-basis: 100%; font-size: 12px; color: #f3e6c4; font-variant-numeric: tabular-nums; }
.anrufleiste .anruf-leute { flex-basis: 100%; order: 5; }
.anrufleiste .anruf-knoepfe { order: 6; }
@media (max-width: 600px) {
  .anrufleiste .anruf-titel { flex-basis: auto; }
  .anrufleiste .anruf-titel b { max-width: 46vw; }
  .anrufleiste .anruf-knoepfe { flex-basis: 100%; justify-content: flex-end; margin-left: 0; }
}

/* ---------- Anrufleiste: Balken links vom Namen, Werte rechts (Ping, Bitrate, Verlust), Grafik der Bitrate (Frank 2026-10-31) */
.anrufleiste .anruf-qualitaet { padding: 4px 2px; }
.anrufleiste .anruf-titel { flex: 1 1 0; min-width: 60px; overflow: hidden; }
.anrufleiste .anruf-titel b { min-width: 0; flex: 0 1 auto; max-width: none; }
.anrufleiste .anruf-uhr { flex: none; }
.anruf-werte { flex: none; gap: 6px; white-space: nowrap; }
.balken.misst i { background: rgba(255,255,255,.18); }
.anruf-details { display: grid; gap: 4px; }
.anruf-details .leise { color: #cdb98a; font-size: 11px; }
.bitrate-grafik { position: relative; display: block; max-width: 420px; }
.bitrate-grafik svg { display: block; width: 100%; height: 56px; background: rgba(255,255,255,.06); border-radius: 6px; }
.bitrate-grafik polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bitrate-grafik polyline.auf { stroke: var(--gold); }
.bitrate-grafik polyline.ab { stroke: #f3e6c4; opacity: .7; }
.bitrate-max { position: absolute; top: 2px; right: 6px; font-size: 10px; color: #cdb98a; }
@media (max-width: 600px) {
  .anrufleiste .anruf-titel b { max-width: none; }
  .anruf-werte .mess-v { font-size: 12px; }
}

/* Pfeile der Bitrate gruen (Frank 2026-10-31): ↑ von dir zum Server, ↓ vom Server zu dir */
.anrufleiste .pfeil { color: #4ade80; font-weight: 700; }

/* ---------- Verbindung zum Server oben beim Kommunikator-Zeichen (Frank 2026-10-31): Balken, am PC daneben die Werte, Antippen = Tafel */
.netz { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 13px; cursor: pointer; border-radius: 8px; }
.netz:hover, .netz:focus-visible { background: var(--flaeche2); }
.netz .balken i { background: #d8cfbd; }
.netz .balken i.an { background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-rand); }
.netz .balken.weg i:first-child { background: #dc2626; }
.netz-werte { font-variant-numeric: tabular-nums; white-space: nowrap; }
.netz-werte:empty { display: none; }
.netz .pfeil { color: #15803d; font-weight: 700; }
@media (max-width: 760px) { .netz-werte { display: none; } }
.netz-tafel { position: fixed; right: 12px; z-index: 950; width: min(440px, calc(100vw - 24px)); display: grid; gap: 6px;
  padding: 12px 14px; border-radius: 12px; background: #2a2214; color: #f3e6c4; font-size: 13px; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.netz-tafel b { color: #fff; }
.netz-kopf { display: flex; align-items: center; gap: 10px; }
.netz-tafel .balken i { background: rgba(255,255,255,.22); }
.netz-tafel .balken i.an { background: var(--gold); }
.netz-tafel .balken.weg i:first-child { background: #f87171; }
.netz-tafel .pfeil { color: #4ade80; font-weight: 700; }
.netz-tafel .leise { color: #cdb98a; font-size: 11px; }
.netz-zwischen { margin-top: 4px; }
.netz-tafel { max-height: calc(100vh - 170px); overflow-y: auto; }

/* ---------- Verbindungsbalken oben: so hoch wie die anderen Zeichen, gruen, ein Balken = rot (Frank 2026-10-31) */
.netz .balken { height: 28px; gap: 3px; }
.netz .balken i { width: 5px; border-radius: 1.5px; background: #ddd6c6; box-shadow: none; }
/* vier Balken statt fuenf (Frank 2026-11-01 22:02 GMT): ein Balken weniger breit, gleich hoch wie vorher (28 px) */
.netz .balken i:nth-child(1) { height: 10px; } .netz .balken i:nth-child(2) { height: 16px; } .netz .balken i:nth-child(3) { height: 22px; }
.netz .balken i:nth-child(4) { height: 28px; }
.netz .balken i.an { background: #16a34a; box-shadow: none; }
.netz .balken.schlecht i.an { background: #dc2626; }
.netz .balken.weg i:first-child { background: transparent; box-shadow: inset 0 0 0 2px #dc2626; }
.netz-tafel .balken i.an { background: #4ade80; }
.netz-tafel .balken.schlecht i.an { background: #f87171; }
/* Grafik: gold = du sendest, knallgruen = du empfaengst; Legende im Bild */
.bitrate-grafik polyline.ab { stroke: #4ade80; opacity: 1; }
.bitrate-legende { position: absolute; top: 2px; left: 6px; display: flex; gap: 10px; font-size: 10px; font-weight: 700; }
.bitrate-legende .auf { color: var(--gold); }
.bitrate-legende .ab { color: #4ade80; }

/* ---------- Zeiterfassung je Benutzer (Verwaltung): Hauptschalter, darunter die einzelnen Teile */
.erfassung { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche2); }
.erfassung-teile { display: grid; gap: 4px; padding-left: 26px; }
.erfassung-teile[hidden] { display: none; }
.erfassung-teile small { font-weight: 400; }

/* ---------- Zeiterfassung im Profil (der Benutzer entscheidet) und in der Verwaltung (sehen, Kontrolle per Haken) */
.erfassung[hidden] { display: none; }
.erfassung-verwaltung { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; }
.erfassung-info { font-size: 13px; color: var(--leise); }
.erfassung-info ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 3px; }
.erfassung-info b { color: var(--text); }

/* ---------- Diagramme der Verbindung: Uhrzeit unten, gestrichelte Skala, gold = gesendet, gruen = empfangen (Frank 2026-10-31) */
.verlauf { margin: 4px 0 0; }
.verlauf figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12px; }
.verlauf figcaption .lg { font-size: 11px; font-weight: 700; }
.verlauf svg { display: block; width: 100%; height: auto; }
.verlauf .raster { stroke: currentColor; stroke-opacity: .28; stroke-width: .6; stroke-dasharray: 3 3; }
.verlauf .achse { stroke: currentColor; stroke-opacity: .5; stroke-width: .8; }
.verlauf .skala { fill: currentColor; fill-opacity: .8; font-size: 8.5px; font-variant-numeric: tabular-nums; }
.verlauf polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.verlauf polyline.auf { stroke: var(--gold); } .verlauf circle.auf { fill: var(--gold); }
.verlauf polyline.ab { stroke: #16a34a; } .verlauf circle.ab { fill: #16a34a; }
.verlauf polyline.jit { stroke: #2563eb; } .verlauf circle.jit { fill: #2563eb; }
.verlauf .lg.auf { color: #a67c00; } .verlauf .lg.ab { color: #15803d; } .verlauf .lg.jit { color: #2563eb; }
.netz-tafel .verlauf polyline.ab { stroke: #4ade80; } .netz-tafel .verlauf circle.ab { fill: #4ade80; }
.netz-tafel .verlauf polyline.jit { stroke: #93c5fd; } .netz-tafel .verlauf circle.jit { fill: #93c5fd; }
.netz-tafel .verlauf .lg.auf { color: var(--gold); } .netz-tafel .verlauf .lg.ab { color: #4ade80; } .netz-tafel .verlauf .lg.jit { color: #93c5fd; }
.verlauf-wahl { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.verlauf-ansicht { display: grid; gap: 10px; }
.verlauf-tabelle { max-height: 50vh; overflow: auto; }
.verlauf-tabelle[hidden] { display: none; }
.verlauf-tabelle table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; width: 100%; }
.verlauf-tabelle th, .verlauf-tabelle td { padding: 2px 6px; border-bottom: 1px solid var(--linie); text-align: right; white-space: nowrap; }
.verlauf-link { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Zurueck/Vorwaerts oben in der Leiste wie im Browser (Frank 2026-10-31) - nur sichtbar, wenn es dorthin einen Schritt gibt */
.nav-knopf { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--gold-rand, var(--linie)); border-radius: 10px; background: var(--flaeche); color: var(--gold-rand, var(--text)); cursor: pointer; }
.nav-knopf[hidden] { display: none; }
.nav-knopf .symbol { width: 24px; height: 24px; stroke-width: 2.6; }
.nav-knopf:hover { background: var(--markehell); }
.e-kopf .nav-knopf { height: var(--kopf-h); width: var(--kopf-h); }
.oben .nav-knopf { border-color: var(--linie); color: var(--text); }
/* Schriftzug "Aufgaben Manager" nur auf der Startseite; auf tieferen Seiten stehen dort Zurueck/Vorwaerts (Frank 2026-10-31 22:36) */
.e-kopf.tief .e-marke-wort { display: none !important; }

/* Gespraechskopf (Frank 2026-10-31): Punkt gruen = online, rot = offline; Anrufen und Video neben dem Namen */
.k-punkt.aus { background: #dc2626; }
.k-wer { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.k-kopf .k-status-text.online { color: #15803d; }
.k-kopf .k-status-text.offline { color: #b91c1c; }
.k-kopf .anruf-auswahl.zweier { border: 0; background: none; padding: 0; margin: 0; flex: none; }
.k-kopf .anruf-auswahl.zweier .hoerer { min-height: 44px; }
@media (max-width: 600px) {   /* am Handy nur die Zeichen, der Name braucht den Platz */
  .k-kopf { gap: 8px; }
  .k-kopf .k-bild { width: 40px; height: 40px; }
  .k-kopf .anruf-auswahl.zweier .hoerer { font-size: 0; padding: 0; width: 44px; height: 44px; justify-content: center; gap: 0; }
  .k-kopf .anruf-auswahl.zweier .hoerer .hoerer-zeichen { font-size: 18px; }
  .k-kopf .anruf-auswahl.zweier .hoerer .k-symbol { width: 22px; height: 22px; }
}
@media (prefers-color-scheme: dark) {
  .k-kopf .k-status-text.online { color: #4ade80; }
  .k-kopf .k-status-text.offline { color: #f87171; }
}

/* Gelb = Aussetzer: ein oder zwei Lebenszeichen ausgeblieben, beim dritten rot (Frank 2026-10-31) */
.k-punkt.wackelt { background: #f59e0b; }
.k-kopf .k-status-text.wackelt { color: #b45309; }
@media (prefers-color-scheme: dark) { .k-kopf .k-status-text.wackelt { color: #fbbf24; } }

/* Kontaktliste: wie lange jemand weg ist, neben dem Namen (Frank 2026-10-31) */
.k-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.k-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-dauer { flex: none; font-size: 13px; font-weight: 700; }
.k-dauer:empty { display: none; }
.k-dauer.offline { color: #b91c1c; }
.k-dauer.wackelt { color: #b45309; }
@media (prefers-color-scheme: dark) { .k-dauer.offline { color: #f87171; } .k-dauer.wackelt { color: #fbbf24; } }

/* Ping zum Server (Frank 2026-10-31): Durchschnitt und Spitze gestrichelt, nicht durchgegangene Pings als rote Striche unten */
.verlauf .ref { stroke-width: 1.1; stroke-dasharray: 5 3; }
.verlauf .ref.schnitt { stroke: #a78bfa; } .verlauf .lg.schnitt { color: #7c3aed; }
.verlauf .ref.spitze { stroke: #f87171; } .verlauf .lg.spitze { color: #dc2626; }
.verlauf polyline.spitze { stroke: #f87171; stroke-width: 1; stroke-opacity: .7; } .verlauf circle.spitze { fill: #f87171; }
.verlauf .ausfall { stroke: #ef4444; stroke-width: 1.6; }
.netz-tafel .verlauf .lg.schnitt { color: #c4b5fd; } .netz-tafel .verlauf .lg.spitze { color: #fca5a5; }
.ping-zahlen { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.ping-zahlen .aus b, .ping-tabelle td.aus { color: #f87171; }
.ping-tabelle { max-height: 240px; }
.netz-tafel .verlauf-tabelle th, .netz-tafel .verlauf-tabelle td { border-bottom-color: rgba(255,255,255,.15); }

/* Meine Zeiterfassung (Frank 2026-10-31): Informationen, Einstellungen, Erfasste Zeiten mit Nachweisen */
.zf-reiter { margin: 4px 0 10px; }
.zf-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.zf-kopf input[type=month] { min-height: 40px; font: inherit; }
.zf-tage { display: grid; gap: 6px; margin: 10px 0; }
.zf-tag { border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
.zf-tag > summary { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.zf-tag[open] > summary { border-bottom: 1px solid var(--linie); }
.zf-tag .zf-bloecke { margin: 6px 8px 10px; width: calc(100% - 16px); font-size: 13px; }
.zf-warn { color: #b91c1c; font-weight: 700; }
.zf-info td { vertical-align: top; font-size: 13px; }
.zf-an { color: #15803d; font-weight: 700; } .zf-aus { color: #b91c1c; font-weight: 700; }
@media (max-width: 600px) { .zf-bloecke th:nth-child(6), .zf-bloecke td:nth-child(6) { display: none; } .zf-info th:nth-child(3), .zf-info td:nth-child(3) { display: none; } }
@media print {
  .e-kopf, .e-suche-zeile, .oben, .seite, .menue, #anrufleiste, #netz-tafel, .zf-reiter, .zf-kopf button, #meldungen, .nav-knopf { display: none !important; }
  body, .zf-tag { background: #fff !important; color: #000 !important; }
  .zf-tag { break-inside: avoid; }
}

/* Zeiterfassung: Ansicht der Verwaltung und Einsichten (Frank 2026-10-31) */
.zf-hinweis { background: var(--markehell); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.zf-einsicht ol { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }

/* System-Portal (Frank 2026-10-31): Ampel oben, Kacheln, Verlauf, Dienste, Syslog */
.system-knopf { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.ampel-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #9ca3af; flex: none; }
.system-knopf[data-ampel=gruen] .ampel-punkt, .ampel-punkt[data-ampel=gruen] { background: #16a34a; }
.system-knopf[data-ampel=gelb] .ampel-punkt, .ampel-punkt[data-ampel=gelb] { background: #f59e0b; }
.system-knopf[data-ampel=rot] .ampel-punkt, .ampel-punkt[data-ampel=rot] { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.sys-ampel { border-radius: 12px; padding: 12px 16px; margin: 6px 0 12px; font-size: 15px; border: 1px solid var(--linie); }
.sys-ampel.gruen { background: #dcfce7; color: #14532d; } .sys-ampel.gelb { background: #fef3c7; color: #78350f; } .sys-ampel.rot { background: #fee2e2; color: #7f1d1d; }
.sys-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sys-kachel { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--linie); border-left-width: 6px; border-radius: 10px; background: var(--flaeche); }
.sys-kachel span { font-size: 12px; color: var(--leise); } .sys-kachel b { font-size: 16px; } .sys-kachel small { font-size: 11px; color: var(--leise); }
.sys-kachel.gruen { border-left-color: #16a34a; } .sys-kachel.gelb { border-left-color: #f59e0b; } .sys-kachel.rot { border-left-color: #dc2626; }
.sys-grafiken { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.sys-balken { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: var(--linie); vertical-align: middle; overflow: hidden; }
.sys-balken i { display: block; height: 100%; background: var(--marke); }
.sys-syslog { max-height: 420px; overflow: auto; }
.sys-syslog td { font-size: 12px; vertical-align: top; } .sys-syslog td:last-child { word-break: break-word; }
.sys-fehler td:nth-child(2) { color: #b91c1c; font-weight: 700; } .sys-warnung td:nth-child(2) { color: #b45309; }
@media (prefers-color-scheme: dark) {
  .sys-ampel.gruen { background: #14532d; color: #dcfce7; } .sys-ampel.gelb { background: #78350f; color: #fef3c7; } .sys-ampel.rot { background: #7f1d1d; color: #fee2e2; }
}

/* Ablage-Baum (Frank 2026-10-31) */
.abl-baum { font-size: 13px; overflow-x: auto; }
.abl-knoten > summary, .abl-blatt { list-style-position: outside; padding: 3px 0; cursor: pointer; }
.abl-kinder { margin-left: 18px; border-left: 1px dashed var(--linie); padding-left: 8px; }
.abl-zeile { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.abl-name { font-weight: 700; font-family: ui-monospace, monospace; min-width: 140px; }
.abl-balken { display: inline-block; width: 90px; height: 8px; background: var(--linie); border-radius: 4px; overflow: hidden; }
.abl-balken i { display: block; height: 100%; background: var(--marke); }
.abl-zahl { font-variant-numeric: tabular-nums; }
.abl-weitere { padding: 3px 0 3px 18px; }
.abl-pfad { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }

/* Container im Einzelnen (Frank 2026-10-31) */
.sys-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.sys-paare th { text-align: left; font-weight: 600; color: var(--leise); width: 45%; } .sys-paare td { word-break: break-word; }

/* Suche unter der Kopfleiste, rollt mit der Seite weg (Frank 2026-10-31 22:36: "klaut sonst nur unnoetig Platz") */
.e-suche-zeile { max-width: 860px; margin: 0 auto; padding: 10px 12px 0; box-sizing: border-box; }
@media (max-width: 560px) { .e-suche-zeile { padding: 8px 8px 0; } }
/* Ohne Suche braucht die Kopfleiste keinen Umbruch: immer eine Zeile; auf schmalen Handys (360 px) mit Vorwaerts auf der Startseite etwas enger */
.e-kopf { flex-wrap: nowrap; }
@media (max-width: 380px) { .e-kopf { gap: 5px; } .e-rechts { gap: 5px; } }

/* Ticket Einfach (Frank 2026-10-31 23:10): Einordnung als Baum, Knoepfe kleiner, Ticket-Chat gekennzeichnet */
.e-knoepfe .e-knopf { flex: 0 1 auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
.e-chat-art { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--marke); margin: 2px 0 2px; }
.e-notiz .e-wer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.e-notiz-aendern { min-height: 32px; font-size: 13.5px; }

/* Schlagwoerter (Frank 2026-10-31): Felder, Auswahl, Filter, Karten, Verwaltung. Super = gold mit Stern */
.sw-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; }
.sw-titel { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin-right: 2px; }
.sw-chip { display: inline-flex; align-items: center; border: 1px solid var(--linie2); border-radius: 999px; background: var(--flaeche2);
  font-size: 14px; line-height: 1; overflow: hidden; }
.sw-chip .sw-wort { padding: 7px 10px; font: inherit; color: var(--text); background: none; border: 0; }
button.sw-wort { cursor: pointer; }
button.sw-wort:hover { background: var(--markehell); }
.sw-chip .sw-weg { border: 0; border-left: 1px solid var(--linie2); background: none; color: var(--leise); font: inherit; font-size: 16px;
  padding: 4px 9px; cursor: pointer; min-height: 30px; }
.sw-chip .sw-weg:hover { color: var(--schlecht, #b91c1c); background: var(--markehell); }
.sw-chip.super { border-color: var(--gold-rand); background: var(--gold); }
.sw-chip.super .sw-wort { color: var(--gold-schrift); font-weight: 700; }
.sw-plus { border: 1px dashed var(--marke); color: var(--marke); background: var(--flaeche); border-radius: 999px; padding: 7px 12px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 34px; }
.sw-wahl { flex: 1 0 100%; border: 1px solid var(--linie2); border-radius: 12px; padding: 8px; background: var(--flaeche); }
.sw-feld { width: 100%; box-sizing: border-box; min-height: 42px; font-size: 16px; padding: 0 10px; border: 2px solid var(--linie2); border-radius: 10px; }
.sw-feld:focus { border-color: var(--marke); outline: none; }
.sw-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.sw-option { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie2); border-radius: 999px; background: var(--flaeche2);
  padding: 7px 11px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.sw-option small { color: var(--leise); font-size: 11.5px; }
.sw-option.super { background: var(--gold); border-color: var(--gold-rand); color: var(--gold-schrift); font-weight: 700; }
.sw-option.neu { border-style: dashed; border-color: var(--marke); color: var(--marke); font-weight: 700; background: var(--flaeche); }
.sw-option:hover { border-color: var(--marke); }
.sw-leer { padding: 4px 2px; }
.e-sw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 6px; }
.e-sw-filter .sw-plus { font-size: 13.5px; padding: 6px 11px; }
/* Karte: Signale und Schlagwoerter in EINER Zeile (Frank 2026-11-01), was nicht passt, wird "+n" */
.e-karte .e-signale { flex-wrap: nowrap; overflow: hidden; }
.e-karte .e-signale > * { flex: none; }
.e-signale > .sw-mini:not(.super) { font-weight: 500; color: var(--leise); }
.e-signale > .sw-mini.mehr { font-weight: 700; color: var(--text); }
.sw-mini { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--flaeche2); border: 1px solid var(--linie2); color: var(--leise); }
.sw-mini.super { background: var(--gold); border-color: var(--gold-rand); color: var(--gold-schrift); font-weight: 700; }
.sw-tabelle td.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.sw-tabelle .sw-zeile-super td { background: var(--gold); color: var(--gold-schrift); }
.sw-schalter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sw-dazu { display: flex; align-items: flex-end; }

/* Handy: Kartenzeile kompakter, damit neben Deins/Prioritaet/Frist noch Schlagwoerter passen (Frank 2026-11-01) */
.e-karte .e-signale > .e-ueber .kurz, .e-karte .e-signale > .e-frist .kurz { display: none; }
@media (max-width: 600px) {
  .e-karte .e-signale { gap: 4px; font-size: 11.5px; }
  .e-karte .e-signale > span { padding: 1px 6px; }
}
@media (max-width: 440px) {
  .e-karte .e-signale > .e-ueber .lang, .e-karte .e-signale > .e-frist .lang { display: none; }
  .e-karte .e-signale > .e-ueber .kurz, .e-karte .e-signale > .e-frist .kurz { display: inline; }
}
/* Felder in Karten und im Ticket ohne starke Rundung - spart Platz (Frank 2026-11-01) */
.e-signale > span, .sw-mini, .sw-chip { border-radius: 4px; }
.sw-chip .sw-weg { border-radius: 0; }

/* Schlagwoerter hell leuchtendes Gold, normale Schrift (Frank 2026-11-01); Karte: eigene Zeile, flaechig verteilt */
:root { --sw-gold: #ffe27a; --sw-gold-rand: #efc63a; --sw-gold-super: #d9a514; --sw-gold-schrift: #3d2c00; }
.sw-mini, .sw-mini.super, .sw-chip, .sw-chip.super { background: var(--sw-gold); border: 1px solid var(--sw-gold-rand); color: var(--sw-gold-schrift); font-weight: 400; }
.sw-chip .sw-wort, .sw-chip.super .sw-wort { color: var(--sw-gold-schrift); font-weight: 400; }
.sw-mini.super, .sw-chip.super { border: 1.5px solid var(--sw-gold-super); }
.sw-chip .sw-weg { border-left-color: var(--sw-gold-rand); color: var(--sw-gold-schrift); }
.e-sw-zeile { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 4px; margin-top: 6px; }   /* eine Zeile, NIE umbrechen (Frank 2026-11-01) */
.e-sw-zeile .sw-mini { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; padding: 2px 3px; border-radius: 3px; white-space: nowrap; }   /* buendig um Raute und Wort; passt die Zeile nicht, wird abgekuerzt (…) statt umgebrochen */
.e-sw-zeile .sw-mini.mehr { flex: 0 0 auto; background: var(--flaeche2); border-color: var(--linie2); color: var(--text); font-weight: 600; }
.e-tickettitel.aenderbar { cursor: text; border-radius: 6px; }
.e-tickettitel.aenderbar:hover { background: var(--markehell); }
.e-titelfeld { width: 100%; box-sizing: border-box; font: inherit; font-size: 20px; font-weight: 700; padding: 4px 8px; margin: 0 0 4px;
  border: 2px solid var(--marke); border-radius: 8px; background: var(--flaeche); color: var(--text); }
/* Schlagwort-Felder im Ticket ebenfalls buendig um den Text (Frank 2026-11-01: "zwei, drei Pixel drueber") */
.sw-chip .sw-wort { padding: 3px 3px; }
.sw-chip .sw-weg { padding: 0 6px; min-height: 0; align-self: stretch; }
/* Aufgeklappte Karte (Details): alle Schlagwoerter ausgeschrieben, Umbruch erlaubt (Frank 2026-11-01) - nur dort */
.e-sw-zeile.alle { flex-wrap: wrap; overflow: visible; }
.e-sw-zeile.alle .sw-mini { flex: none; overflow: visible; text-overflow: clip; }
/* Aufgeklappte Karte: Oeffnen, Uebernehmen, Klonen passen am Handy in eine Zeile (Frank 2026-11-01: "Ticket oeffnen etwas kleiner") */
.e-details .e-knoepfe .kurz { display: none; }
@media (max-width: 440px) {
  .e-details .e-knoepfe { gap: 6px; }
  .e-details .e-knoepfe .e-knopf { padding: 0 10px; font-size: 14px; }
  .e-details .e-knoepfe .lang { display: none; }
  .e-details .e-knoepfe .kurz { display: inline; }
}
/* Ticket Einfach: Status-Auswahl statt Erledigt-Knopf (Frank 2026-11-01) */
.e-status { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px 0 10px; border: 2px solid var(--marke);
  border-radius: 10px; background: var(--flaeche); color: var(--marke); font-weight: 700; font-size: 15px; }
.e-status select { border: 0; background: transparent; font: inherit; color: var(--text); font-weight: 700; min-height: 36px; cursor: pointer; }
.e-status-name { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
/* Notiz-Eingabe wie im Chat, unter den Notizen */
.e-notizleiste { margin-top: 8px; }
/* Ticket-Seite Einfach (Frank 2026-11-01): Kopf, Schlagwort-Bereich, Verwaltung, Verlauf, Teilseiten */
.e-ticketkopf { margin: 2px 0 8px; }
.e-prio-wahl { font: inherit; font-weight: 600; padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.e-swb { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--flaeche2); border: 1px solid var(--linie2);
  border-radius: 10px; padding: 6px 10px 8px; margin: 0 0 10px; }
.e-swb.klickbar { cursor: pointer; }
.e-swb.klickbar:hover { border-color: var(--marke); }
.e-swb-kopf { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--leise); margin-bottom: 4px; }
.e-swb-mehr { text-transform: none; letter-spacing: 0; color: var(--marke); font-weight: 700; }
.e-swb-felder { display: flex; flex-wrap: wrap; gap: 4px; max-height: 48px; overflow: hidden; }   /* hoechstens zwei Zeilen (Frank) */
.e-swb-felder .sw-mini { font-size: 12.5px; padding: 2px 3px; border-radius: 3px; white-space: nowrap; }
.e-rolle { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--linie2); border-radius: 4px; padding: 2px 2px 2px 6px; background: var(--flaeche2); font-size: 13.5px; }
.e-rolle button { border: 0; background: none; color: var(--leise); font: inherit; font-size: 16px; padding: 0 6px; cursor: pointer; }
.e-verlauf { border: 1px solid var(--linie2); border-radius: 12px; background: var(--flaeche); margin: 0 0 12px; overflow: hidden; }
.e-verlauf-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px; border: 0; border-top: 1px solid var(--linie);
  background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.e-verlauf-zeile:first-child { border-top: 0; }
.e-verlauf-zeile:hover { background: var(--markehell); }
.e-verlauf-zeichen { flex: none; width: 22px; text-align: center; }
.e-verlauf-name { font-weight: 700; flex: none; }
.e-verlauf-zusatz { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.e-verlauf-zahl { margin-left: auto; font-weight: 700; color: var(--leise); }
.e-verlauf-pfeil { font-size: 22px; color: var(--leise); }
.e-notizsuche-zeile { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.e-notizsuche { flex: 1 1 auto; min-height: 40px; font-size: 16px; padding: 0 10px; border: 2px solid var(--linie2); border-radius: 10px; }
.e-anhang { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linie); }
.e-anhang-bild { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--flaeche2); border: 1px solid var(--linie2); font-size: 12px; font-weight: 800; color: var(--leise); text-decoration: none; }
.e-anhang-bild img { width: 100%; height: 100%; object-fit: cover; }
.e-anhang-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.e-kasten { border: 1px solid var(--linie2); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; background: var(--flaeche); }
.e-zeitbuchen { display: flex; gap: 10px; }
.e-zeitbuchen label, .e-zeit-text { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--leise); flex: 1 1 0; margin-top: 6px; }
.e-zeitbuchen input, .e-zeit-text input { font: inherit; font-size: 16px; min-height: 40px; padding: 0 8px; border: 2px solid var(--linie2); border-radius: 8px; color: var(--text); }
.e-schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
/* Notizen Einfach: Schalter "Nur fuer mich (privat)"; die Leiste bekommt dann einen deutlichen Rand (Frank 2026-11-01) */
.e-privat-schalter { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--leise); cursor: pointer; }
.e-privat-schalter.an { color: var(--schlecht); font-weight: 700; }
.e-notizleiste.privat .k-zeile { outline: 2px solid var(--schlecht); outline-offset: 2px; border-radius: 12px; }
/* Verwaltung hochsparsam (Skizze Frank 2026-11-01): Kaesten mit Bezeichnung im Rand, eng gesetzt, kleine Kaesten nebeneinander */
.e-verw { display: flex; flex-wrap: wrap; gap: 6px 6px; border: 0; background: none; border-radius: 0; overflow: visible; margin: 0 0 10px; }
.e-verw .e-feld { flex: 1 1 auto; display: block; min-width: 0; margin: 0; padding: 0 6px 5px; border: 1.5px solid var(--marke2, #c9a227);
  border-radius: 8px; background: var(--flaeche); }
.e-verw .e-feld-name { flex: none; padding: 0 4px; margin-left: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: none;
  color: var(--text); line-height: 1.1; }
.e-verw .e-feld-wert { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14px; line-height: 1.25; }
.e-verw .e-feld-wert .chip { min-height: 0; padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }
.e-verw .e-feld-wert .marke-zustand { padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }
.e-verw .e-feld-wahl { font: inherit; min-height: 0; max-width: 100%; padding: 2px 4px; font-size: 14px; }
.e-verw .e-rolle { padding: 1px 1px 1px 5px; font-size: 13px; }
.e-verw .e-rolle button { padding: 0 4px; font-size: 15px; }
@media (max-width: 440px) { .e-verw .e-feld { padding: 0 5px 4px; } }
/* noch enger (Frank: "jeden Millimeter"): Verlauf-Zeilen, Schlagwort-Bereich, Nummer klein */
.e-verlauf-zeile { min-height: 38px; padding: 3px 10px; }
.e-swb { padding: 3px 8px 5px; margin: 0 0 8px; }
.e-swb-kopf { margin-bottom: 2px; font-size: 11.5px; }
.e-verw .e-nr { font-size: 11.5px; }
/* Schlagwoerter (Frank 2026-11-01): Bereich mit Bezeichnung im Rand; Dialog ohne x/+, Felder leicht abgerundet, hoeher, Schrift groesser */
.e-swb { display: block; width: auto; min-width: 0; margin: 0 0 8px; padding: 0 6px 5px; border: 1.5px solid var(--marke2, #c9a227); border-radius: 8px;
  background: var(--flaeche); }
.e-swb-kopf { display: inline; padding: 0 4px; margin: 0 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: none; color: var(--text); }
.e-swb-mehr { font-size: 11.5px; }
.sw-option { border-radius: 4px; font-size: 15px; padding: 7px 10px; }
.sw-option small { font-size: 12px; }
.sw-option.super { font-weight: 400; background: var(--sw-gold); border: 1.5px solid var(--sw-gold-super); color: var(--sw-gold-schrift); }   /* helles Gold wie ueberall */
.sw-dlg-oben { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sw-dlg-wort { border: 1px solid var(--sw-gold-rand); background: var(--sw-gold); color: var(--sw-gold-schrift); border-radius: 4px;
  font: inherit; font-size: 15px; padding: 7px 10px; cursor: pointer; }
.sw-dlg-wort.super { border: 1.5px solid var(--sw-gold-super); }
.sw-dlg-wort:hover { text-decoration: line-through; }
.sw-dlg-hilfe { font-size: 12.5px; font-weight: 400; }
/* GESETZ Frank 2026-11-01: Super-Schlagwoerter sind IMMER gold, normale IMMER weiss - ueberall (Karte, Ticket, Dialog, Liste, Filter).
   Ein Schlagwort wird nicht gold, weil es einem Ticket zugeordnet ist. Geprueft mit tests/oberflaeche_pruefen.js. */
.sw-mini, .sw-chip, .sw-dlg-wort, .sw-option { background: var(--flaeche); border: 1px solid var(--linie2); color: var(--text); font-weight: 400; }
.sw-chip .sw-wort { color: var(--text); }
.sw-chip .sw-weg { border-left-color: var(--linie2); color: var(--leise); }
.sw-mini.super, .sw-chip.super, .sw-dlg-wort.super, .sw-option.super { background: var(--sw-gold); border: 1.5px solid var(--sw-gold-super); color: var(--sw-gold-schrift); }
.sw-chip.super .sw-wort { color: var(--sw-gold-schrift); }
.sw-chip.super .sw-weg { border-left-color: var(--sw-gold-rand); color: var(--sw-gold-schrift); }
.e-sw-zeile .sw-mini.mehr { background: var(--flaeche2); border-color: var(--linie2); color: var(--text); font-weight: 600; }
.e-notiz-rechts { display: inline-flex; align-items: center; gap: 8px; }
/* Versionsnummern je Notiz (Frank 2026-11-01): klein, aber gut zu treffen (30 x 30 px); die angetippte ist hervorgehoben */
.e-vnr-leiste { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.e-vnr-titel { font-size: 12px; color: var(--leise); margin-right: 2px; }
.e-vnr { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--linie2); border-radius: 4px; background: var(--flaeche); color: var(--text);
  font: inherit; font-size: 13.5px; cursor: pointer; }
.e-vnr.neueste { font-weight: 700; }
.e-vnr.an { background: var(--marke); border-color: var(--marke); color: #fff; }
.e-vnr-wahl { height: 30px; border: 1px solid var(--linie2); border-radius: 4px; background: var(--flaeche); font: inherit; font-size: 13.5px; padding: 0 2px; }
.e-vnr-wahl.an { border-color: var(--marke); background: var(--markehell); }
.e-vnr-wahl { min-width: 64px; padding: 0 6px; font-size: 15px; }   /* aeltere Versionen (Frank 2026-11-01 18:13/21:28 GMT): breit genug, dass die erste Nummer zu sehen ist */
/* 1–5 und die Auswahl bleiben in einer Reihe; wird es am Handy zu eng, rutscht „Bearbeiten“ darunter (rechts) */
.e-vnr-leiste { flex-wrap: nowrap; }
.e-notiz-rechts { flex-wrap: wrap; justify-content: flex-end; }
.e-vnr-leer { font-size: 12px; color: var(--leise); }
.e-version-wahl { border-left: 3px solid var(--marke); background: var(--flaeche2); padding: 4px 8px; border-radius: 0 6px 6px 0; }
.e-vdiff summary { cursor: pointer; font-size: 13px; color: var(--marke); margin: 4px 0; }
/* Editor: Grundknoepfe sichtbar, Rest hinter "⋯" (Frank 2026-11-01); Notizen-Seite Einfach mit Bueroklammer und Mikrofon */
.werkzeuge-mehr { display: contents; }
.werkzeuge-mehr[hidden] { display: none; }
.werkzeuge .mehr-knopf { font-weight: 800; letter-spacing: 1px; }
.werkzeuge .mehr-knopf.an { background: var(--flaeche); color: var(--marke); }
.e-notizeditor { margin-top: 8px; }
.e-notizeditor .fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.e-editor-medien { display: inline-flex; gap: 6px; align-items: center; }
.e-editor-medien .k-rund { width: 36px; height: 36px; }
.e-ton.laeuft { width: auto; padding: 0 10px; border-radius: 18px; background: var(--schlecht); color: #fff; font-size: 13px; font-weight: 700; }
.e-notizeditor.privat .schreibfeld { outline: 2px solid var(--schlecht); outline-offset: -2px; }
/* Wem es gehoert + Uebernehmen/Freigeben/Uebertragen an einer Stelle im Ticketkopf (Frank 2026-11-01); gut zu treffen (32 px) */
.e-besitz { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.e-besitz .chip { min-height: 32px; padding: 2px 10px; border-radius: 5px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.e-besitz .chip.an { background: var(--marke); border-color: var(--marke); color: #fff; }
.e-besitz-seit { font-size: 12px; }
/* Karte: an wen vergeben (Frank 2026-11-01) - zuerst gekuerzt, damit Prioritaet und Frist stehen bleiben (G1) */
.e-karte .e-signale .e-vergeben { flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--linie2); border-radius: 4px; padding: 0 5px; }

/* Fingerflaechen am Handy (Frank 2026-11-01 18:09 GMT: Knoepfe zum Teil zu klein, die Hoehe aendern).
   Nur auf Touch-Geraeten, in der einfachen Ansicht und in den Dialogen; nur die Hoehe - am PC bleibt alles, wie es ist.
   44 px = uebliche Mindestgroesse einer Fingerflaeche; im Verwaltungskasten des Tickets 36 px (Frank: "jeden Millimeter").
   Die runden Markierfarben im Editor bleiben rund und werden dafuer 34 px gross. */
@media (pointer: coarse) {
  #app.einfach button, #app.einfach select, .schleier .dialog button, .schleier .dialog select { min-height: 44px; }
  #app.einfach .e-verw button, #app.einfach .e-verw select { min-height: 36px; }
  #app.einfach .werkzeuge .farbe, .schleier .werkzeuge .farbe { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
}

/* ---------- Keine stark abgerundeten Knoepfe mehr - keine (Frank 2026-11-01 21:27 GMT): hoechstens 6 px, wie das Logo im Kleinen.
   Gilt fuer jeden Knopf und jede Auswahl, auch fuer bisher runde (Hoerer, Markierfarben, Schlagwort-Knoepfe); Anzeigen (Punkte, Bilder) bleiben rund. */
:root { --knopf-rund: 6px; }
button, select, [role=button], .e-knopf, .hoerer, .chip, .sw-chip, .sw-plus, .sw-option, .modus-regler, .modus-regler span { border-radius: var(--knopf-rund) !important; }

/* ---------- Eine Seite (Frank 2026-11-01 21:27, B-083): Verwaltung, Zeitbericht, System im Hauptbereich der einen Seite.
   Zurueck nur oben in der Leiste; breite Tabellen rollen in sich, die Seite verschiebt sich nie seitlich. */
#app.einfach .seitenkopf .zurueck { display: none; }
#app.einfach .tabelle { display: block; overflow-x: auto; }
.klingel-stumm { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--warn); }   /* Ton noch gesperrt (Frank 2026-11-01 22:03) */

/* ---------- E-Mail-Verwaltung (Frank 2026-11-01): Postfaecher */
.pf-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.warn-text { color: var(--warn); }
.pf-kasten h3 { margin: 4px 0 8px; font-size: 15px; }
.pf-liste { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pf-liste li { display: flex; gap: 8px; align-items: baseline; }
.pf-zeit { flex: none; color: var(--leise); font-size: 12px; min-width: 64px; }
.pf-zeichen { flex: none; width: 14px; text-align: center; font-weight: 800; }
.pf-ok .pf-zeichen { color: var(--gut); } .pf-fehler .pf-zeichen, .pf-fehler { color: var(--schlecht); } .pf-abgeholt .pf-zeichen { color: var(--marke); }
.gut-text { color: var(--gut); font-weight: 600; }
.pf-assistent { font-size: 15px; gap: 8px; margin: 8px 0 14px; }
.pf-assistent .pf-gefunden { font-weight: 700; color: var(--gut); }
.pf-hilfe { background: var(--markehell); border: 1px solid var(--gold-rand); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.pf-assistent .pf-ja .pf-zeichen { color: var(--gut); } .pf-assistent .pf-nein .pf-zeichen { color: var(--schlecht); }
.pf-assistent .pf-nur-offen { color: var(--warn); font-weight: 600; } .pf-assistent .pf-nur-offen .pf-zeichen { color: var(--warn); }
.pf-neugruppe { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .pf-neugruppe[hidden] { display: none; } .pf-neugruppe label { flex: 1 1 200px; }
.pf-gefunden-box { border: 1px solid var(--gut); background: var(--guthell); border-radius: 6px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 4px; font-size: 14px; }
.pf-assistent { max-height: 46vh; overflow-y: auto; } .pf-assistent .pf-leise { color: var(--leise); font-size: 13px; }   /* alle Wege einzeln (Frank 2026-11-02 00:34) */
/* ---------- Lese-Client Posteingang (Frank 2026-11-02 00:57) */
.pf-mails td { font-size: 14px; } .pf-mail h3 { margin: 10px 0 6px; font-size: 17px; }
.pf-kopf { border-collapse: collapse; font-size: 14px; margin-bottom: 8px; } .pf-kopf th { text-align: left; color: var(--leise); font-weight: 600; padding: 2px 12px 2px 0; vertical-align: top; } .pf-kopf td { padding: 2px 0; word-break: break-word; }
.pf-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.pf-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 6px; padding: 12px; max-height: 60vh; overflow: auto; }
.pf-original { white-space: pre-wrap; word-break: break-all; font-size: 12px; max-height: 50vh; overflow: auto; background: var(--flaeche2); padding: 10px; border-radius: 6px; }
.pf-wartet { align-self: center; margin-right: auto; font-size: 13px; }   /* statt Speichern, bis angelegt ist (Frank 2026-11-02 01:15) */

/* Kasten "E-Mail" im Mail-Ticket (echt/Spam, 2026-11-02): wie Schlagwoerter, aber nichts abschneiden - die Knoepfe muessen am Handy sichtbar sein */
.e-mailentscheid .e-swb-felder { max-height: none; overflow: visible; align-items: center; gap: 6px; }
/* Notiz per E-Mail (2026-11-03): Adressen zum Antippen, eigene Zeile fuer weitere Adressen, Stand unter der Notiz */
.e-notizmail { margin-top: 10px; }
.e-mailchips { display: flex; flex-wrap: wrap; gap: 6px; }
.e-mailchip { border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 14px;
  color: var(--text); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-mailchip.an { background: var(--markehell); border-color: var(--marke2); color: var(--marke); font-weight: 600; }
.e-mailchip:disabled { opacity: .45; cursor: not-allowed; }
.e-mailchip small { color: var(--leise); font-weight: 400; }
.e-mailneu { display: flex; gap: 6px; margin-top: 8px; }
.e-mailfeld { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 6px 8px; border: 1px solid var(--linie2); border-radius: 6px; }
.e-mailhinweis { margin-top: 6px; font-size: 13px; }
.e-mailstand { margin-top: 6px; font-size: 13px; color: var(--leise); overflow-wrap: anywhere; }
.e-mailstand.gesendet { color: var(--gut); }
.e-mailstand.aufgegeben, .e-mailstand.fehler { color: var(--schlecht); }
/* Abschluss-Mail (2026-11-03): Text aenderbar, volle Breite */
.e-abschluss-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px; border: 1px solid var(--linie2); border-radius: 6px; resize: vertical; }
.e-abschluss-text:disabled { opacity: .5; }
/* Notiz per E-Mail (2026-11-03 23:02, G1/G4): Bezeichnung im Rahmen, je Empfaenger genau eine Zeile (Adresse kuerzt sich, Knoepfe nie) */
.e-mailempf { margin: 8px 0 0; padding: 0 8px 5px; border: 1.5px solid var(--marke2); border-radius: 6px; font-size: 13px; min-width: 0; }   /* Rahmen dunkelgold wie die anderen Kaesten (Frank 23:13) */
.e-mailempf-kopf { padding: 0 4px; font-size: 11.5px; font-weight: 800; color: var(--marke); }   /* "✉ Per E-Mail" dunkelgold, hervorgehoben */
.e-empfzeile { padding: 3px 0; min-width: 0; }
.e-empfkopf { display: flex; align-items: center; gap: 4px; min-width: 0; }
/* Drei Stufen (Frank 2026-11-05 21:11): 1 unser Server › 2 Server Empfaenger › 3 Quittung - je mit Ampel, darunter "wo haengt es" */
.e-stufen { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 2px; }
.e-stufe-pfeil { color: var(--leise); }
.e-bestchip.e-stufe.gut { background: var(--guthell, #e7f6ec); }
.e-bestchip.e-stufe.schlecht { background: var(--schlechthell, #fde8e8); }
.e-bestchip.e-stufe.warn, .e-bestchip.e-stufe.wartet { color: #8a5a00; border-color: #d9a400; background: #fff6d6; }
.e-bestchip.e-stufe.leer { color: var(--leise); }
.e-haengt { margin-top: 3px; font-size: 12.5px; padding: 2px 6px; border-radius: 4px; }
.e-haengt.schlecht { color: var(--schlecht); background: var(--schlechthell, #fde8e8); font-weight: 600; }
.e-haengt.warn { color: #8a5a00; background: #fff6d6; }
.e-haengt.info { color: var(--marke); background: var(--markehell); }
.e-empfzeile + .e-empfzeile { border-top: 1px solid var(--linie2); }
.e-empfadr { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.e-empfadr small { color: var(--leise); font-weight: 400; }
.e-empfzeile .e-bestchip, #app.einfach .e-empfzeile .e-bestchip { flex: 0 0 auto; min-height: 0; line-height: 1.5; }   /* klein halten (Frank 23:02: Knoepfe nicht zu gross) */
.e-bestchip { border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 6px; padding: 1px 6px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.e-bestchip.gut { color: var(--gut); border-color: var(--gut); }
.e-bestchip.schlecht { color: var(--schlecht); border-color: var(--schlecht); }
.e-bestchip.warn { color: var(--warn); border-color: var(--warn); }
.e-bestchip.leer, .e-bestchip.wartet { color: var(--leise); }
.e-mailbest { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; }
.e-bestliste { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.e-bestliste li { margin-bottom: 6px; overflow-wrap: anywhere; }
.e-bericht.unzustellbar b { color: var(--schlecht); }
.e-bericht.zugestellt b { color: var(--gut); }
.e-bericht-roh { max-height: 40vh; overflow: auto; font-size: 12px; background: var(--flaeche); border: 1px solid var(--linie2); border-radius: 6px; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Gesuchtes Wort markieren (2026-11-03): leicht gruen, gut lesbar; gold bleibt den Super-Schlagwoertern */
mark.e-treffer { background: #a8e89a; color: inherit; border-radius: 2px; padding: 0 1px; box-shadow: 0 0 0 1px #4caf50; }   /* kraeftiger als die gruene erste Notiz */
:root[data-theme="dark"] mark.e-treffer { background: #2f5a2a; box-shadow: 0 0 0 1px #4c8a44; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark.e-treffer { background: #2f5a2a; box-shadow: 0 0 0 1px #4c8a44; } }
.e-ausschnitt { font-size: 14px; color: var(--leise); margin: 2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Woerter antippen (2026-11-03): eingeschaltet golden hinterlegt wie andere aktive Werkzeuge */
.werkzeuge .antippen.an { background: var(--markehell); border-color: var(--marke2); color: var(--marke); }
