/* ============================================================
   chester · loesungen-detail.css
   Use-case detail-page styling: Template (alle 5 Detail-Seiten)
   ============================================================ */

/* ---------- Detail Hero (uses .sub-hero base from site.css) ---------- */
/* Detail hero now uses .det-breadcrumb in place of the standalone eyebrow,
   so it inherits the regular .sub-hero top padding. */
.det-breadcrumb {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 24px;
}
.det-breadcrumb a { color: inherit; text-decoration: none; opacity: 0.85; }
.det-breadcrumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.det-breadcrumb .sep { margin: 0 8px; opacity: 0.45; font-weight: 400; }
.det-breadcrumb.tone-automate { color: hsl(195 80% 38%); }
.det-breadcrumb.tone-intel { color: var(--violet-700); }
.det-breadcrumb.tone-collab { color: hsl(262 70% 50%); }
.det-breadcrumb.tone-ai { color: var(--brand-pink); }
.det-breadcrumb.tone-trust { color: hsl(150 50% 35%); }

.det-hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.det-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border-1);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-1);
}
.det-hero-pill svg { color: var(--state-collab); flex-shrink: 0; }
.det-hero-pill.tone-intel svg { color: var(--state-intel); }
.det-hero-pill.tone-automate svg { color: var(--state-automate); }
.det-hero-pill.tone-trust svg { color: hsl(150 50% 35%); }

.det-hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px;
}

/* ---------- Section heading kit ---------- */
.det-sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.det-sec-eyebrow.tone-collab { color: var(--state-collab); }
.det-sec-eyebrow.tone-intel { color: var(--state-intel); }
.det-sec-eyebrow.tone-automate { color: var(--state-automate); }
.det-sec-head { max-width: 820px; margin-bottom: 48px; }
.det-sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 0; }
.det-sec-head .lead { margin-top: 18px; max-width: 720px; font-size: 18px; }

/* ---------- Section 2: Pain points ---------- */
.det-pain-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 880px) { .det-pain-list { grid-template-columns: 1fr; } }
.det-pain-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 16px;
}
.det-pain-x {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: hsl(0 70% 96%);
  color: hsl(0 70% 45%);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.det-pain-text {
  font-size: 15px; line-height: 1.55; color: var(--fg-1); margin: 0;
}
.det-pain-text strong { font-weight: 600; color: var(--fg-1); }

/* ---------- Section 3: Workflow, vertical 2-column layout ---------- */
.det-wf-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 980px) {
  .det-wf-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* LEFT, accordion */
.det-wf-acc {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-1);
}
.det-wf-acc-item {
  border-bottom: 1px solid var(--border-1);
  transition: background 200ms ease;
}
.det-wf-acc-item.open { background: var(--paper); }
.det-wf-acc-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--fg-1);
  transition: padding 180ms ease;
}
.det-wf-acc-item.open .det-wf-acc-head { padding: 24px 16px 16px; }
.det-wf-acc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  transition: color 180ms ease;
}
.det-wf-acc-item.open .det-wf-acc-num { color: var(--state-collab); }
.det-wf-acc-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.det-wf-acc-toggle {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-1);
  background: var(--paper);
  color: var(--fg-2);
  flex-shrink: 0;
  transition: all 180ms ease;
}
.det-wf-acc-item.open .det-wf-acc-toggle {
  background: var(--state-collab);
  border-color: var(--state-collab);
  color: #fff;
}
.det-wf-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}
.det-wf-acc-item.open .det-wf-acc-body { grid-template-rows: 1fr; }
.det-wf-acc-body-inner {
  overflow: hidden;
  min-height: 0;
}
.det-wf-acc-item.open .det-wf-acc-body-inner {
  padding: 0 16px 26px 50px;
}
.det-wf-acc-lede {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 12px;
  line-height: 1.45;
}
.det-wf-acc-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 18px;
}
.det-wf-acc-meta {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-1);
}

/* RIGHT, vertical BPMN graphic */
.det-wf-graphic {
  position: static;
}
.det-wf-graphic-inner {
  background: var(--hero-ink);
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.det-wf-graphic-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(hsla(0,0%,100%,0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0,0%,100%,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(120% 80% at 0% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 0% 0%, #000 30%, transparent 75%);
}
.det-wf-graphic-inner > * { position: relative; z-index: 1; }
.det-wf-graphic-inner .det-bpmn-title { margin-bottom: 20px; }
.det-wf-vflow {
  display: flex; flex-direction: column;
  gap: 8px;
  position: relative;
}
.det-wf-vnode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 14px 14px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
}
.det-wf-vnode:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.det-wf-vnode.active {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3) inset;
}
/* continuous connector line behind nodes, runs through the center of all num pills */
.det-wf-vflow::before { display: none; }
/* connector line between adjacent nodes, only fills the gap, not behind cards */
.det-wf-vflow { gap: 0; }
.det-wf-vnode { margin-bottom: 8px; }
.det-wf-vnode:last-child { margin-bottom: 0; }
.det-wf-vnode:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;          /* aligns with num pill center (12px padding + 12px radius - 1px) */
  bottom: -8px;
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.28);
  z-index: 0;
}
/* hide the old per-node stubs */
.det-wf-vnode:not(:last-child)::after { display: none; }
.det-wf-vnode-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 200ms ease;
}
.det-wf-vnode.active .det-wf-vnode-num {
  background: #fff; color: var(--hero-ink);
  border-color: #fff;
}
.det-wf-vnode-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.det-wf-vnode-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}
.det-wf-vnode-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
}

/* shared bpmn tag styles (kept for vnode tags) */
.det-bpmn-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 24px;
}
.det-bpmn-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
}
.det-bpmn-tag.is-ai {
  background: linear-gradient(135deg, #00D4FF 0%, #7729FF 50%, #FF6B9C 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px -2px rgba(119,41,255,.4);
}
.det-bpmn-tag.is-ai svg { color: #fff; }
.det-bpmn-tag.is-human { background: hsla(190, 80%, 50%, 0.16); border-color: hsla(190, 80%, 65%, 0.4); color: #A8E8F4; }
.det-bpmn-tag.is-system { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.det-bpmn-tag svg { color: currentColor; }

/* meta rows shared between accordion + old step cards */
.det-step-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.det-step-meta-row .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  flex-shrink: 0;
}
.det-step-meta-row.is-ai { color: var(--state-collab); }
.det-step-meta-row.is-ai .label { color: var(--state-collab); }
.det-step-meta-row.is-ai svg { color: var(--state-collab); }
.det-step-meta-row.is-human svg { color: var(--state-automate); }
.det-step-meta-row.is-system svg { color: var(--fg-3); }

/* Subgrid alignment for step cards */
@media (min-width: 981px) {
  .det-steps {
    grid-template-rows: repeat(5, auto);
  }
  .det-steps > .det-step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
  }
}

/* ---------- Section 4: Outcomes ---------- */
.det-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .det-outcomes { grid-template-columns: 1fr; } }
.det-outcome {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.det-outcome-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--state-collab-bg);
  color: var(--state-collab);
  display: inline-flex; align-items: center; justify-content: center;
}
.det-outcome:nth-child(2) .det-outcome-icon { background: var(--state-automate-bg); color: var(--state-automate); }
.det-outcome:nth-child(3) .det-outcome-icon { background: var(--state-intel-bg); color: var(--state-intel); }
.det-outcome:nth-child(4) .det-outcome-icon { background: hsl(150 60% 94%); color: hsl(150 60% 30%); }
.det-outcome-metric {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0;
}
.det-outcome p {
  font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0;
}

/* ---------- Section 5: Systems ---------- */
.det-systems {
  display: grid; gap: 20px;
}
.det-systems-cat {
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 16px;
}
.det-systems-cat-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.det-systems-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.det-systems-list span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--page-bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-1);
}
.det-systems-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--page-bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.det-systems-note svg { flex-shrink: 0; color: var(--state-collab); margin-top: 2px; }
.det-systems-note a { color: var(--state-collab); font-weight: 600; text-decoration: none; }
.det-systems-note a:hover { text-decoration: underline; }

/* ---------- Section 6: Phases ---------- */
.det-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
@media (max-width: 980px) { .det-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .det-phases { grid-template-columns: 1fr; } }
.det-phase {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.det-phase-week {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--state-collab);
  margin-bottom: 10px;
}
.det-phase-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg-1);
}
.det-phase p {
  font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0;
}
.det-phase .det-phase-when {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (min-width: 981px) {
  .det-phase:not(:last-child)::after {
    display: none;
  }
}
.det-timeline-banner {
  margin-top: 32px;
  padding: 22px 28px;
  background: var(--state-collab-bg);
  border: 1px solid var(--state-collab-br);
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--fg-1);
}
.det-timeline-banner strong { font-weight: 600; color: var(--state-collab); }
.det-timeline-banner svg { flex-shrink: 0; color: var(--state-collab); }

/* ---------- Section 7: Pricing ---------- */
.det-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .det-pricing { grid-template-columns: 1fr; } }
.det-pricing-card {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.det-pricing-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--state-collab-bg);
  color: var(--state-collab);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.det-pricing-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg-1);
}
.det-pricing-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.det-pricing-card strong { color: var(--fg-1); font-weight: 600; }

.det-pricing-cta {
  margin-top: 28px;
  padding: 36px 40px;
  background: var(--page-bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .det-pricing-cta { grid-template-columns: 1fr; padding: 28px 24px; }
}
.det-pricing-cta-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0 0 8px;
}
.det-pricing-cta p {
  font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0;
}

/* ---------- Section 8: FAQ ---------- */
.det-faq {
  max-width: 880px;
  margin: 0;
}
.det-faq-item {
  border-top: 1px solid var(--border-1);
  padding: 22px 0;
  cursor: pointer;
}
.det-faq-item:last-child {
  border-bottom: 1px solid var(--border-1);
}
.det-faq-q {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}
.det-faq-q h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg-1);
}
.det-faq-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  background: var(--paper);
  transition: all .2s;
}
.det-faq-item.open .det-faq-toggle {
  background: var(--state-collab);
  border-color: var(--state-collab);
  color: #fff;
  transform: rotate(45deg);
}
.det-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding-top .3s ease;
}
.det-faq-item.open .det-faq-a { max-height: 800px; padding-top: 14px; }
.det-faq-a p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 760px;
}

/* ---------- Section 9: Cross-sell ---------- */
.det-cross {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .det-cross { grid-template-columns: 1fr; } }
.det-cross-card {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.det-cross-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px hsl(var(--h-fg-1) / .18);
  border-color: var(--state-collab-br);
}
.det-cross-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--state-collab-bg);
  color: var(--state-collab);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.det-cross-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg-1);
}
.det-cross-result {
  font-size: 14px;
  font-weight: 600;
  color: var(--state-collab);
  margin: 0;
}
.det-cross-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
}
.det-cross-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--state-collab);
}
.det-cross-card:hover .det-cross-link svg { transform: translateX(4px); }
.det-cross-link svg { transition: transform .2s; }
@media (min-width: 981px) {
  .det-cross {
    grid-template-rows: repeat(5, auto);
  }
  .det-cross > .det-cross-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
  }
}

/* ---------- Section 10: Final CTA, re-uses .final-cta from site.css ---------- */
.det-final p { color: rgba(255,255,255,0.92); }
