/* FLX Tickets – Spielerbereich
 * 1:1 aus der Vorschau (Start, Meine-Tickets, Neues-Ticket, Ticket-Spieler, Handy).
 * Kein Dashboard-Look: Kopfband in der Markenfarbe, Inhalt max. 1120 px,
 * zweispaltig, Listen nur mit Trennlinien, Status als farbiger Text.
 */

.pl {
  font-family: var(--font); color: var(--text); background: var(--bg); min-height: min(100vh, 900px); width: 100%;
  font-size: var(--fs-player); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column;
}
.wrap { max-width: var(--w-player); width: 100%; margin: 0 auto; padding: 0 var(--pad-player); box-sizing: border-box; }

/* ── Kopfband ───────────────────────────────────────────────────────── */
.band { background: var(--brand); color: var(--brand-fg); }
.band a, .band a:hover { color: var(--brand-fg); }
.band-kopf { height: 68px; display: flex; align-items: center; gap: 12px; }
.band-marke { display: flex; align-items: center; gap: 12px; color: inherit; }
.band .logo { background: var(--brand-fg); color: var(--brand); width: 30px; height: 30px; }
.band-name { font-size: 16px; font-weight: 600; }
.band-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.band-nav .leise { opacity: .8; }
.band-nav .leise:hover { opacity: 1; }
.band-login { padding: 8px 14px; border-radius: 8px; background: color-mix(in srgb, currentColor 12%, transparent); }
.band .av { background: var(--brand-fg); color: var(--brand); }
.band-konto { position: relative; }
.band-konto > summary { list-style: none; cursor: pointer; display: flex; }
.band-konto > summary::-webkit-details-marker { display: none; }
.band-konto .dd-menu { left: auto; right: 0; min-width: 200px; color: var(--text); font-size: 14px; }
.band-konto .dd-menu a, .band-konto .dd-menu a:hover { color: var(--text); }

.held { padding-top: 28px; padding-bottom: 30px; }
.held.start { padding-top: 44px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.held.form { padding-top: 24px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.held.ticket { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.held-ober { font-size: 14px; opacity: .75; }
.held-meta { font-size: 15px; opacity: .8; }
.held-status { display: none; }
.zurueck { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: .8; }
.h1 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.h1.gross { font-size: 42px; max-width: 640px; }
.lead { margin: 0; line-height: 1.55; font-size: 17px; }
.band .lead { max-width: 600px; opacity: .82; }
.band .lead.breit { max-width: 620px; }

/* ── Spalten ────────────────────────────────────────────────────────── */
.cols { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; padding-top: 40px; padding-bottom: 72px; }
.cmain { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cside { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 28px; }
.sh { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.sh.abstand { margin-top: 16px; }
.meta { font-size: 13px; color: var(--muted); }
.t15 { font-size: 15px; }

/* ── Listen nur mit Trennlinien ─────────────────────────────────────── */
.liste { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-top); margin-top: -12px; }
.rowlink { display: flex; align-items: center; gap: 14px; padding: 18px 4px; border-top: 1px solid var(--line-top); color: var(--text); }
.rowlink:hover { color: var(--text); background: var(--hover); }
.rowlink.oben { align-items: flex-start; }
.rl-text { display: flex; flex-direction: column; gap: 3px; }
.rl-titel { font-weight: 500; font-size: 17px; }
.rl-desc { color: var(--muted); font-size: 15px; }
.leer-text { color: var(--muted); font-size: 15px; padding: 18px 4px; border-top: 1px solid var(--line-top); margin: 0; }

/* Meine Tickets */
.neu-punkt-g { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.neu-leer-g { width: 9px; flex: none; }
.tk { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.tk-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.tk-titel { font-weight: 500; font-size: 17px; }
.tk-titel.neu { font-weight: 600; }
.tk-zeit { margin-left: auto; white-space: nowrap; }
.tk-auszug { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-auszug .von { color: var(--text-2); }

/* ── Hilfsspalte ────────────────────────────────────────────────────── */
.kasten { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-side); background: var(--surface); }
.kasten-titel { font-size: 16px; font-weight: 600; }
.kasten-text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.btn.blk { justify-content: center; border-radius: var(--r-box); }
.btn.h42 { height: 42px; }
.btn.h44 { height: 44px; font-size: 14.5px; }
.btn.h46 { height: 46px; font-size: 15px; }
.info { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; }
.info + .info { border-top: 1px solid var(--line-top); }
.info-wert { font-size: 15px; overflow-wrap: anywhere; }
.linkzeile { display: flex; align-items: center; gap: 10px; padding: 11px 0; color: var(--text); font-size: 15px; flex-wrap: nowrap; }
.linkzeile:hover { color: var(--accent-text); }
.linkzeile + .linkzeile { border-top: 1px solid var(--line-top); }
.schalterzeile { display: flex; align-items: center; padding: 12px 0; flex-wrap: nowrap; gap: 14px; }
.schalterzeile .stapel { gap: 3px; }
.schalterzeile .tgl { margin-left: auto; }
.sektion { display: flex; flex-direction: column; gap: 16px; }

/* Schritt-Liste */
.schritte { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.sn { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; background: var(--active); color: var(--muted); }
.sn.aktiv { background: var(--accent); color: var(--on-accent); }
.sn.fertig { background: var(--ok-soft); color: var(--ok); }
.step-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.step-titel { font-size: 15px; font-weight: 500; }
.step-meta { font-size: 13.5px; }

/* ── Formular (Neues Ticket) ────────────────────────────────────────── */
.fld.gross { gap: 9px; }
.fld.gross > label, .fld.gross > .label { font-size: 15px; }
.in.gross { height: 48px; padding: 0 16px; font-size: 16px; border-radius: var(--r-card); }
textarea.in.gross { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.5; }
.in.gross::placeholder { color: var(--placeholder); }
.dd.gross > summary { height: 48px; padding: 0 16px; font-size: 16px; border-radius: var(--r-card); }
.raster2.g18 { gap: 18px; }
.anhang-knopf {
  display: flex; align-items: center; gap: 10px; background: none; border: none; color: var(--accent-text);
  font: 15px var(--font); padding: 0; cursor: pointer; align-self: flex-start;
}
.anhang-knopf:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.anhang-liste { font-size: 14px; color: var(--muted); margin: -12px 0 0; }
.absenden { display: flex; align-items: center; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.btn.senden-gross { height: 48px; padding: 0 26px; font-size: 15px; border-radius: var(--r-card); }

/* ── Chat (Ticket) ──────────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; gap: 22px; }
.m-ich { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.m-team { display: flex; gap: 12px; align-items: flex-start; }
.m-team-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; align-items: flex-start; }
.m-team .meta b { color: var(--text); font-weight: 500; }
.m-sys { text-align: center; }
.bub { padding: 12px 16px; border-radius: 18px; line-height: 1.55; max-width: 80%; box-sizing: border-box; overflow-wrap: anywhere; }
.bub p { margin: 0 0 8px; }
.bub p:last-child { margin: 0; }
.bub-team { background: var(--surface-2); border-top-left-radius: 6px; }
.bub-me { background: var(--bubble-me); border-top-right-radius: 6px; color: var(--bubble-me-fg); }
.bub-anhaenge { display: flex; flex-wrap: wrap; gap: 8px; max-width: 80%; }
.m-ich .bub-anhaenge { justify-content: flex-end; }
.bub-anhaenge a { font-size: 14px; }
.bub-anhaenge img { display: block; max-width: 220px; max-height: 160px; border-radius: 12px; }
.chat-eingabe { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; padding-top: 6px; }
.chat-eingabe .btn.ic { width: 46px; height: 46px; flex: none; }
.chat-eingabe .btn.pri { border-radius: 23px; }
.chat-feld {
  flex: 1; min-height: 48px; height: 48px; max-height: 200px; border-radius: 23px; border: 1px solid var(--border-field);
  background: var(--field-chat); padding: 13px 18px; box-sizing: border-box; color: var(--text); font: 16px/1.3 var(--font);
  resize: none; outline: none; display: block; min-width: 0;
}
.chat-feld::placeholder { color: var(--placeholder); }
.chat-feld:focus { border-color: var(--accent); }
.pl-rumpf { flex: 1; display: flex; flex-direction: column; }
.pl-rumpf > .wrap > .flash { margin-top: 24px; }
.chat-geschlossen { color: var(--muted); font-size: 15px; padding-top: 6px; }

/* ── Fußzeile ───────────────────────────────────────────────────────── */
.fuss { border-top: 1px solid var(--line-top); margin-top: auto; }
.fuss-innen { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; color: var(--muted); }
.fuss-innen a, .fuss-innen a:hover { color: var(--muted); }

/* ── Rechtstexte ────────────────────────────────────────────────────── */
.rechtstext { font-size: 16px; line-height: 1.65; color: var(--text-msg); max-width: 720px; }
.rechtstext h2 { font-size: 20px; margin: 28px 0 8px; color: var(--text); }
.rechtstext h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); }
.rechtstext p { margin: 0 0 12px; }

/* ── Handy ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --pad-player: 20px; }
  .band-kopf { height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .band-name { white-space: nowrap; }
  .band-nav { gap: 16px; font-size: 15px; }
  .band-nav .nur-breit { display: none; }
  .h1 { font-size: 28px; }
  .h1.gross { font-size: 32px; }
  .held.start { padding-top: 28px; padding-bottom: 36px; }
  .cols { gap: 36px; padding-top: 28px; padding-bottom: 48px; }
  .cside { max-width: none; flex-basis: 100%; }
  .raster2.g18 { grid-template-columns: minmax(0, 1fr); }
  .rowlink { padding: 16px 4px; }
  .fuss-innen .ml { margin-left: 0; }

  /* Ticket als Chat-Ansicht (Vorschau „Handy“): kompakter Kopf, der Verlauf
     füllt den ersten Bildschirm, die Eingabe steht fest unten. Die Hilfsspalte
     (Stand, Angaben) folgt laut Auftrag unter dem Verlauf. */
  .pl.chatseite { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .chatseite .band { padding: 14px 10px 16px; }
  .chatseite .band .wrap { padding: 0; }
  .chatseite .band-kopf { display: none; }
  .chatseite .held.ticket { padding: 0; gap: 8px; }
  .chatseite .zurueck { gap: 2px; opacity: .85; font-size: 16px; min-height: 44px; }
  .chatseite .zurueck svg { width: 22px; height: 22px; }
  .chatseite .held-titel { padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
  .chatseite .h1 { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
  .chatseite .held-meta { display: none; }
  .chatseite .held-status { display: block; font-size: 13.5px; opacity: .8; }
  .chatseite .pl-rumpf { overflow-y: auto; min-height: 0; container-type: size; }
  .chatseite .cols { padding: 18px 14px 110px; gap: 32px; }
  .chatseite .cmain { gap: 0; }
  .chatseite .chat { gap: 16px; min-height: calc(100cqh - 18px - 82px); }
  .chatseite .m-team .av { display: none; }
  .chatseite .m-ich, .chatseite .m-team-body { gap: 5px; }
  .chatseite .bub, .chatseite .bub-anhaenge { max-width: 88%; font-size: 16px; }
  .chatseite .chat-eingabe {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 10px 28px;
    border-top: 1px solid var(--line-top); gap: 8px; align-items: center; background: var(--bg);
  }
  .chatseite .chat-eingabe .btn.ic { width: 44px; height: 44px; }
  .chatseite .chat-eingabe .btn.pri { border-radius: 22px; }
  .chatseite .chat-feld { min-height: 46px; height: 46px; border-radius: 22px; padding: 12px 16px; }
  .chatseite .fuss-innen { padding-left: 14px; padding-right: 14px; }
}


/* ── Welle 2 (W3): Kategorie-Wahl, Fortschritt, Absender, Dialog ───────── */
.kat-wahl > summary.zurueck { justify-content: flex-start; color: inherit; }
.kat-wahl > summary.zurueck:hover { opacity: 1; }
.kat-wahl .dd-menu { min-width: 280px; max-height: 60vh; overflow-y: auto; color: var(--text); font-size: 15px; z-index: 20; }
.band .kat-wahl .dd-menu a, .band .kat-wahl .dd-menu a:hover { color: var(--text); }
.kat-wahl .dd-opt.alle { border-top: 1px solid var(--line-top); color: var(--muted); }
.kat-teil { display: flex; flex-direction: column; gap: 24px; }
.fld.hat-fehler .in, .fld.hat-fehler .dd > summary { border-color: var(--bad); }
.fortschritt { display: inline-flex; align-items: center; gap: 10px; }
.fortschritt[hidden] { display: none; }
.fortschritt-balken { width: 160px; height: 6px; border-radius: 3px; background: var(--active); overflow: hidden; }
.fortschritt-balken > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.absender { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.chat-eingabe { position: relative; }
.chat-dateien, .chat-fortschritt { position: absolute; left: 56px; bottom: 100%; margin-bottom: 4px; font-size: 13px; }
.chat-dateien.fehler-text { color: var(--bad); }
.dlg-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.wartung .lead { color: var(--text-msg); }
@media (max-width: 720px) {
  .absender { margin-left: 0; width: 100%; }
  .chatseite .chat-dateien, .chatseite .chat-fortschritt { left: 62px; bottom: auto; top: -24px; margin: 0; background: var(--bg); padding: 2px 6px; border-radius: 6px; }
}
