/* ============================================================
   ticketflow.css . Seitenspezifische Styles für die
   Smart-Layer-Detailseite „360° Ticketflow".
   Nutzt die globalen Design-Tokens aus styles.css, daher
   greift der Dark-Mode automatisch. Alle Klassen sind mit
   .tf- geprefixt, um Kollisionen zu vermeiden.
   ============================================================ */

/* ---- Hero-Ergänzungen ---- */
.tf-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }

/* ---- Callout-Box (Hero-Proof + "Das heißt für ..."-Boxen) ---- */
.tf-hero-proof,
.tf-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;
}
.tf-hero-proof { margin-top: 28px; max-width: 560px; }
.tf-hero-proof strong { color: var(--blue-dark); font-weight: 600; }

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

/* ---- Abschluss-CTA: eigene, klar vom dunklen Footer abgesetzte Sektion ---- */
.tf-cta { background: var(--blue-soft); border-top: 1px solid var(--blue-line); }
.tf-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tf-cta-text { max-width: 680px; }
.tf-cta-text .section-eyebrow { margin-bottom: 14px; }
.tf-cta h2 { margin-bottom: 14px; }
.tf-cta p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .tf-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; } }

/* ---- Figure / Diagramm-Karte (bleibt in beiden Modi hell) ---- */
.tf-figure {
  background: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 34, 0.04);
}
.tf-figure svg { display: block; width: 100%; height: auto; }
.tf-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;
}
.tf-figure--spaced { margin-bottom: 36px; }
.tf-subhead { font-size: 20px; margin: 0 0 18px; }

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

/* ---- Nutzen-Band ---- */
.tf-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.tf-benefit { background: var(--paper); padding: 26px 24px; }
.tf-benefit .ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--blue);
}
.tf-benefit h3 { font-size: 16.5px; margin-bottom: 7px; }
.tf-benefit p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

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

/* ---- Trennschärfe-Matrix ---- */
.tf-matrix-wrap { overflow-x: auto; }
.tf-matrix {
  width: 100%; border-collapse: collapse; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; font-size: 14.5px; background: var(--paper);
}
.tf-matrix th {
  background: #172230; color: #fff; font-weight: 600; text-align: left;
  padding: 12px 14px; font-size: 13.5px;
}
.tf-matrix th.h {
  background: #0f1722; font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; font-weight: 600;
}
.tf-matrix td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tf-matrix td.obs { color: var(--ink); font-weight: 500; }
.tf-matrix tr:nth-child(even) td { background: var(--soft-2); }
.tf-cell {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.tf-c-sup { background: var(--green-soft); color: var(--green); }
/* Light-Mode-Rot. Dark-Mode-Variante in dark-mode.css, da es kein Rot-Token gibt. */
.tf-c-con { background: #fdecec; color: #b42318; }
.tf-c-irr { color: var(--muted); }
.tf-c-noise { background: var(--soft); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.tf-diag { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600; }
.tf-diag.hi { color: var(--green); }
.tf-diag.mid { color: var(--orange-dark); }
.tf-diag.lo { color: var(--muted); }
.tf-matrix-note { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; }

/* ---- Quellenstärke ---- */
.tf-strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-str { border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 24px; background: var(--paper); }
.tf-str .dots { display: flex; gap: 5px; margin-bottom: 14px; }
.tf-str .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.tf-str.s .dot:nth-child(-n+3) { background: var(--green); }
.tf-str.m .dot:nth-child(-n+2) { background: var(--blue); }
.tf-str.w .dot:nth-child(-n+1) { background: var(--orange); }
.tf-str .role { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 6px; }
.tf-str.s .role { color: var(--green); }
.tf-str.m .role { color: var(--blue-dark); }
.tf-str.w .role { color: var(--orange-dark); }
.tf-str h3 { font-size: 16px; margin-bottom: 6px; }
.tf-str p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- Verlässlichkeit ---- */
.tf-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tf-limit { border-left: 3px solid var(--green-soft); padding: 4px 0 4px 18px; }
.tf-limit h3 { font-size: 16.5px; margin-bottom: 6px; }
.tf-limit p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- Means-Box (Das heißt für ...) ---- */
.tf-means { margin-top: 26px; }
.tf-means b { color: var(--blue-dark); }

/* ---- Stufen ---- */
.tf-phases { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tf-phase { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); }
.tf-phase .badge {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 6px; margin-bottom: 12px;
}
.tf-phase.one .badge { background: var(--green-soft); color: var(--green); }
.tf-phase.two .badge { background: var(--blue-soft); color: var(--blue-dark); }
.tf-phase h3 { margin-bottom: 8px; }
.tf-phase p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .tf-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tf-triplet { grid-template-columns: 1fr; gap: 24px; }
  .tf-strength { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tf-split { grid-template-columns: 1fr; }
  .tf-split .col.human { border-left: none; border-top: 1px solid var(--line); }
  .tf-limits { grid-template-columns: 1fr; }
  .tf-phases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tf-benefits { grid-template-columns: 1fr; }
}
