/* Tickets — Priorität als Farbe: Notfall rot, dringend orange, normal blau, niedrig grau */

:root { --t-normal: #3a76b8; }

/* Punkte auf dem Grundriss und in der Legende */
.gr-pin.t-notfall .gr-punkt { background: var(--z3); }
.gr-pin.t-hoch .gr-punkt { background: var(--z2); }
.gr-pin.t-normal .gr-punkt { background: var(--t-normal); }
.gr-pin.t-niedrig .gr-punkt { background: var(--grau-500); }

/* Liste */
.t-zeile { border-left: 4px solid transparent; }
.t-zeile.t-p-notfall { border-left-color: var(--z3); }
.t-zeile.t-p-hoch { border-left-color: var(--z2); }
.t-zeile.t-p-normal { border-left-color: var(--t-normal); }
.t-zeile.t-p-niedrig { border-left-color: var(--grau-300); }
.t-zeile.t-zu { border-left-color: transparent; }
.t-zeile.t-zu .zeile-haupt b { color: var(--grau-700); }
.t-nr { font-size: 20px; font-weight: 300; min-width: 34px; text-align: right; color: var(--grau-700); font-variant-numeric: tabular-nums; flex: none; }
.t-ungelesen .zeile-haupt b { font-weight: 700; }
.t-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--petrol-600); margin-right: 6px; vertical-align: middle; }
.t-letzte { color: var(--grau-700) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-prio { font-weight: 600; }
.t-prio-notfall { color: var(--z3); }
.t-prio-hoch { color: var(--warn); }
.t-prio-niedrig { color: var(--grau-500); font-weight: 400; }
.t-melden-knopf { min-height: 52px; font-size: 16px; margin: 0 0 12px; }

/* Abzeichen am Menüpunkt */
.t-abzeichen {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--z3); color: var(--weiss); font-size: 11px; font-weight: 700; line-height: 1; margin-left: 8px;
}
.nav a[data-nav="tickets"] { display: flex; align-items: center; justify-content: space-between; }
.nav-unten a[data-nav="tickets"] { position: relative; }
.nav-unten .t-abzeichen { position: absolute; top: 3px; left: calc(50% + 4px); margin: 0; }

/* Melden */
.t-treffer { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.t-treffer button {
  display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 10px 12px; min-height: 44px; border: 1px solid var(--grau-200);
  background: var(--weiss); border-radius: var(--radius); font: inherit; color: var(--grau-900); cursor: pointer;
}
.t-treffer button:hover { background: var(--petrol-50); }
.t-treffer button b { font-weight: 500; }
.t-treffer button small { color: var(--grau-500); }
.t-treffer p { margin: 4px 0; }
.t-wahl { display: flex; align-items: center; gap: 8px; background: var(--petrol-50); border: 1px solid var(--petrol-100); border-radius: var(--radius); padding: 4px 4px 4px 12px; margin-bottom: 6px; }
.t-wahl span { flex: 1; }
.t-wahl .btn { font-size: 20px; min-width: 40px; justify-content: center; }
.t-links { align-self: flex-start; padding-left: 0; }
.t-prio-wahl { display: flex; width: 100%; }
.t-prio-wahl button { flex: 1; padding-left: 8px; padding-right: 8px; }
.t-prio-wahl button.gewaehlt[data-prio="notfall"] { background: var(--z3); }
.t-prio-wahl button.gewaehlt[data-prio="hoch"] { background: var(--z2); }
.t-prio-wahl button.gewaehlt[data-prio="niedrig"] { background: var(--grau-500); }
.t-notfall-hinweis { display: flex; flex-direction: column; gap: 4px; }
.t-notruf a { font-size: 20px; font-weight: 600; }
.t-foto-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-mehr { margin: 4px 0 8px; }
.t-mehr summary { cursor: pointer; color: var(--petrol-700); padding: 8px 0; min-height: 40px; }
.t-bestaetigung { text-align: center; }
.t-bestaetigung .t-nr { display: block; text-align: center; font-size: 64px; color: var(--petrol-700); min-width: 0; }
.t-bestaetigung .hinweis-zeile { text-align: left; }

/* Ein Ticket */
.t-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.t-kopf .t-nr.gross { font-size: 40px; min-width: 0; padding-left: 12px; border-left: 4px solid var(--t-normal); }
.t-kopf.t-p-notfall .t-nr { border-left-color: var(--z3); }
.t-kopf.t-p-hoch .t-nr { border-left-color: var(--z2); }
.t-kopf.t-p-niedrig .t-nr { border-left-color: var(--grau-300); }
.t-kopf-text { min-width: 0; }
.t-kopf .unterzeile .status-text { font-size: inherit; }
.t-aktionen { margin-bottom: 12px; }
.t-beschreibung { white-space: pre-wrap; background: var(--weiss); border: 1px solid var(--grau-200); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.t-eintrag { align-items: flex-start; }
.t-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-art-intern { background: var(--grau-100); }
.t-art-intern .t-text { color: var(--grau-700); }
.t-art-system .t-text, .t-art-zuweisung .t-text { color: var(--grau-700); font-size: 14px; }
.t-status-wechsel { color: var(--grau-700) !important; }
.t-ausstehend { opacity: .65; }
.t-antwort { max-width: none; margin-top: 12px; }
.t-antwort textarea { width: 100%; }
.t-antwort.t-intern textarea { background: var(--grau-100); }
.t-art-wahl { margin-bottom: 10px; }
.t-schnell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.t-termin { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--grau-700); }
.t-termin input { min-height: 36px; padding: 5px 8px; }
.t-zeit-zeile { display: flex; gap: 6px; }
.t-zeit-zeile input { flex: 1; min-width: 0; }
.t-panel-aktionen { margin-top: 10px; }
.t-anlage-knopf { margin: 0 0 12px; }

@media (max-width: 860px) {
  .t-schnell .btn { flex: 1 1 45%; justify-content: center; }
  .t-termin { flex: 1 1 45%; }
  .t-termin input { flex: 1; }
  .t-kopf .t-nr.gross { font-size: 32px; }
  .t-nr { min-width: 28px; font-size: 18px; }
}
