/* ============================================================
   ticket-triage.css . Seitenspezifische Styles für die
   Ticket-Triage-Detailseite „/ticket-triage".
   Nutzt die globalen Design-Tokens aus styles.css, daher
   greift der Dark-Mode automatisch. Alle Klassen sind mit
   .tt- geprefixt, um Kollisionen zu vermeiden.
   ============================================================ */

/* ---- Hero: Überschrift volle Breite oben, Text + Mail-Karte nebeneinander darunter ---- */
.tt-hero-head { max-width: 85%; margin-bottom: 48px; }
.tt-hero-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative; z-index: 1;
}
.tt-hero-text { min-width: 0; }
.tt-hero-text .hero-lead { margin-top: 0; }
.tt-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }

@media (max-width: 860px) {
  .tt-hero-head { max-width: none; margin-bottom: 36px; }
  .tt-hero-body { grid-template-columns: 1fr; gap: 44px; }
}

/* ---- Callout-Box (Hero-Proof + "Das heißt für ..."-Boxen) ---- */
.tt-hero-proof,
.tt-means {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  padding: 14px 18px;
}
.tt-hero-proof { margin-top: 28px; max-width: 560px; }
.tt-hero-proof strong { color: var(--blue-dark); font-weight: 600; }
.tt-means { margin-top: 26px; max-width: 920px; }
.tt-means b { color: var(--blue-dark); }

/* ---- Abschnitts-Abwechslung wie auf der Startseite ---- */
.tt-alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- Problem-Triplet ---- */
.tt-triplet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tt-triplet .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 14px;
}
.tt-triplet h3 { margin-bottom: 8px; }
.tt-triplet p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.tt-closer { margin-top: 40px; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 920px; }
.tt-closer strong { font-weight: 600; }

/* ---- Ablauf: fünf Schritte + Ergebnis ---- */
.tt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tt-step {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 28px; background: var(--paper);
  position: relative; overflow: hidden;
}
.tt-step::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--blue);
}
.tt-step.result { background: var(--blue-soft); border-color: var(--blue-line); }
.tt-step.result::before { background: var(--orange); }
.tt-step-num {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.03em; margin-bottom: 12px;
}
.tt-step.result .tt-step-num { color: var(--orange-dark); }
.tt-step h3 { margin-bottom: 8px; }
.tt-step p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.tt-step.result p { color: var(--ink-2); }

/* ---- Split (Deine Regeln) ---- */
.tt-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.tt-split .col { padding: 30px 30px 34px; }
.tt-split .col.sys { background: var(--blue-soft); }
.tt-split .col.human { background: var(--soft-2); border-left: 1px solid var(--line); }
.tt-split .tag {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.tt-split .col.sys .tag { color: var(--blue-dark); }
.tt-split .col.human .tag { color: var(--orange-dark); }
.tt-split ul { list-style: none; margin: 6px 0 0; padding: 0; }
.tt-split li {
  position: relative; padding-left: 22px; margin-bottom: 11px;
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
}
.tt-split li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0.5;
}
.tt-split .line {
  font-size: 14.5px; color: var(--muted); margin-top: 14px;
  border-top: 1px dashed var(--line-strong); padding-top: 12px;
}

/* ---- Checkliste "Ergebnis-Mail" (Haarlinien statt Karten) ---- */
.tt-checklist { max-width: 920px; margin: 8px 0 0; border-top: 1px solid var(--line); }
.tt-check {
  display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.tt-check .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.tt-check h3 { margin: 0 0 5px; font-size: 17.5px; }
.tt-check p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---- Horizontale Prozess-Grafik (Abschnitt 02, zwischen den Schritt-Zeilen) ---- */
.tt-process {
  background: #ffffff; border: 1px solid #dde2e8; border-radius: 14px;
  padding: 18px 18px 6px; box-shadow: 0 1px 2px rgba(15, 23, 34, 0.04);
  margin: 20px 0; overflow-x: auto;
}
.tt-process svg { display: block; width: 100%; min-width: 880px; height: auto; }

/* ---- Bildunterschrift unter Grafiken (bleibt in beiden Modi hell) ---- */
.tt-figure-cap {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #9aa3ad;
  text-align: center;
  padding: 12px 14px 8px;
  letter-spacing: 0.02em;
}

/* ---- Betrieb (Porträt + zwei Karten) ---- */
.tt-mgmt { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.tt-mgmt-portrait { margin: 0; }
.tt-mgmt-portrait .pic {
  aspect-ratio: 4 / 5; width: 100%; max-width: 380px;
  border-radius: 14px; overflow: hidden; background: var(--soft);
  box-shadow: 0 24px 60px rgba(15, 23, 34, 0.12), 0 1px 2px rgba(15, 23, 34, 0.06);
}
.tt-mgmt-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-mgmt-cap { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tt-mgmt-cap .name { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.tt-mgmt-cards { display: grid; gap: 20px; }
.tt-note-card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--paper); }
.tt-note-card.accent { border-color: var(--blue-line); background: var(--blue-soft); }
.tt-note-card h3 { margin-bottom: 10px; }
.tt-note-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.tt-note-card.accent p { color: var(--ink-2); }

/* ---- Demo-Sektion ---- */
.tt-demo { background: var(--blue-soft); border-top: 1px solid var(--blue-line); border-bottom: 1px solid var(--blue-line); }
.tt-demo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.tt-demo-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 24px; max-width: 540px; }
.tt-demo-steps { list-style: none; padding: 0; margin: 0 0 18px; }
.tt-demo-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; line-height: 1.5; color: var(--ink); margin-bottom: 14px;
}
.tt-step-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tt-demo-hint { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 540px; }
.tt-demo-hint strong { color: var(--ink); }

.tt-demo-form-wrap { position: sticky; top: 90px; }
.tt-demo-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 34, 0.10);
}
.tt-demo-head {
  background: #172230; color: #fff; padding: 18px 28px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
}
.tt-demo-card #triage-demo-form-state,
.tt-demo-card #triage-demo-success-state { padding: 28px; }
#triage-demo-form { display: flex; flex-direction: column; gap: 16px; }
.tt-vip {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer;
}
.tt-vip input { margin-top: 3px; accent-color: var(--blue); }
.tt-example-btn {
  align-self: flex-start;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  color: var(--blue-dark); text-decoration: underline;
}
.tt-example-btn:hover { color: var(--blue); }
.tt-demo-submit { align-self: stretch; justify-content: center; margin-top: 6px; }
.tt-demo-submit:disabled { opacity: 0.65; cursor: wait; }
.tt-demo-card .form-disclaimer { margin: 18px 0 0; }

#triage-demo-form-state[hidden],
#triage-demo-success-state[hidden] { display: none; }
.tt-demo-success-steps { display: flex; flex-direction: column; gap: 18px; }
.tt-demo-success-steps .step { display: flex; flex-direction: column; gap: 4px; }
.tt-demo-success-steps .step-num {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--blue-dark); letter-spacing: 0.04em;
}
.tt-demo-success-steps .step-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.tt-demo-success-steps .step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.tt-demo-again { margin-top: 22px; }

/* ---- Abschluss-CTA ---- */
.tt-cta { background: var(--orange-tint); border-top: 1px solid var(--orange-dark); }
.tt-cta .section-eyebrow { color: var(--orange-dark); }
.tt-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tt-cta-text { max-width: 760px; }
.tt-cta-text .section-eyebrow { margin-bottom: 14px; }
.tt-cta h2 { margin-bottom: 14px; }
.tt-cta p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .tt-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .tt-triplet { grid-template-columns: 1fr; gap: 24px; }
  .tt-mgmt { grid-template-columns: 1fr; gap: 32px; }
  .tt-mgmt-portrait .pic { max-width: 320px; }
  .tt-demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .tt-demo-form-wrap { position: static; }
}
@media (max-width: 760px) {
  .tt-steps { grid-template-columns: 1fr; }
  .tt-split { grid-template-columns: 1fr; }
  .tt-split .col.human { border-left: none; border-top: 1px solid var(--line); }
  .tt-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

/* ============================================================
   Hero-Mail-Karte . bleibt in beiden Modi hell, da sie eine
   echte Ergebnis-E-Mail nachbildet.
   ============================================================ */
.tt-mail-wrap { min-width: 0; }
.tt-mail {
  background: #ffffff; border: 1px solid #e4e7ec; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 34, 0.10);
  overflow: hidden; font-size: 14px; color: #2c2c2a;
}
.tt-mail-pad { padding: 16px 20px; }
.tt-mail-row { border-top: 1px solid #edeff2; }
.tt-mail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tt-mail-brand { display: flex; align-items: center; gap: 10px; }
.tt-mail-logo { background: #185fa5; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 6px; }
.tt-mail-name { font-size: 13px; font-weight: 600; color: #5f5e5a; }
.tt-mail-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; background: #faeeda; color: #854f0b;
}
.tt-mail-h2 { font-size: 16px; font-weight: 700; color: #2c2c2a; line-height: 1.4; }
.tt-mail-sub { margin: 4px 0 0; font-size: 12.5px; color: #5f5e5a; line-height: 1.5; }
.tt-mini {
  border: 1px solid #e4e7ec; border-radius: 10px; padding: 12px 14px;
  background: #fdfdfc;
}
.tt-mini + .tt-mini { margin-top: 10px; }
.tt-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-mini-id { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: #5f5e5a; }
.tt-mini-type { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.tt-mini-type.incident { background: #faece7; color: #712b13; }
.tt-mini-type.request { background: #e6f1fb; color: #0c447c; }
.tt-mini-title { margin-top: 7px; font-size: 14.5px; font-weight: 700; color: #2c2c2a; line-height: 1.4; }
.tt-mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tt-mini-prio, .tt-mini-cat {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px;
}
.tt-mini-prio { background: #faece7; color: #712b13; }
.tt-mini-prio.normal { background: #eaf3de; color: #27500a; }
.tt-mini-cat { background: #fbeaf0; color: #72243e; }
.tt-mail-foot { background: #f8f8f6; font-size: 12px; color: #5f5e5a; line-height: 1.5; }

.tt-mail-cap {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; color: #9aa3ad; text-align: center;
  padding: 14px 14px 0; letter-spacing: 0.02em; line-height: 1.5;
}
