/* GuideCom – Decision Hub: Sitzungsphasen
   Vollständig gekapselt unter .gc-dhp (Präfix gc-dhp__). Es werden bewusst keine
   p/ul/li/h-Tags verwendet, damit globale Theme-Regeln (main p, main ul, h3 …) nicht greifen.
   Schriften: CodecPro-Regular / CodecPro-Bold aus dem Theme. */

.gc-dhp {
  --gc-dhp-ink: #161528;
  --gc-dhp-text: #48475a;
  --gc-dhp-green: #1edc82;
  --gc-dhp-line: #e1e3e6;
  --gc-dhp-card: #f7f8f8;
  --gc-dhp-ease: cubic-bezier(.22, 1, .36, 1);
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 2rem 1.25rem !important;
  background: transparent !important;
  font-family: CodecPro-Regular, "Codec Pro", sans-serif !important;
  color: var(--gc-dhp-text) !important;
  text-align: left !important;
}
.gc-dhp *, .gc-dhp *::before, .gc-dhp *::after { box-sizing: border-box !important; }
.gc-dhp div::before, .gc-dhp div::after { content: none; }

/* ---------- Mobile (Standard): vertikale Zeitleiste ---------- */
.gc-dhp .gc-dhp__steps {
  display: flex !important;
  flex-direction: column !important;
  max-width: 40rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.gc-dhp .gc-dhp__step {
  display: grid !important;
  grid-template-columns: 3rem minmax(0, 1fr) !important;
  column-gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--gc-dhp-ease), transform .6s var(--gc-dhp-ease);
  transition-delay: calc(var(--i, 0) * .15s);
}

.gc-dhp .gc-dhp__rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gc-dhp .gc-dhp__node {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 3rem !important;
  height: 3rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--gc-dhp-green) !important;
  background: var(--gc-dhp-green) !important;
  color: var(--gc-dhp-ink) !important;
  font-family: CodecPro-Bold, "Codec Pro", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  transition: background-color .35s var(--gc-dhp-ease), border-color .35s var(--gc-dhp-ease), box-shadow .35s var(--gc-dhp-ease);
  transition-delay: calc(var(--i, 0) * .6s);
}

.gc-dhp .gc-dhp__line {
  position: relative !important;
  display: block !important;
  flex: 1 1 auto !important;
  width: 3px !important;
  margin: .625rem 0 !important;
  padding: 0 !important;
  background: var(--gc-dhp-line) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}
.gc-dhp .gc-dhp__line-fill {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  margin: 0 !important;
  background: var(--gc-dhp-green) !important;
  transform-origin: top center;
  transform: scale(1);
  transition: transform .5s var(--gc-dhp-ease);
  transition-delay: calc(var(--i, 0) * .6s + .2s);
}
.gc-dhp .gc-dhp__step:last-child .gc-dhp__line { display: none !important; }

.gc-dhp .gc-dhp__card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin: 0 0 1.5rem !important;
  padding: 1.5rem !important;
  background: var(--gc-dhp-card) !important;
  border: 1px solid transparent !important;
  border-radius: 1.125rem !important;
  overflow: hidden !important;
  box-shadow: none;
  transform: translateY(0);
  transition: transform .3s var(--gc-dhp-ease), box-shadow .3s var(--gc-dhp-ease), background-color .3s var(--gc-dhp-ease), border-color .3s var(--gc-dhp-ease);
}
.gc-dhp .gc-dhp__step:last-child .gc-dhp__card { margin-bottom: 0 !important; }

.gc-dhp .gc-dhp__bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: block !important;
  height: 3px !important;
  margin: 0 !important;
  background: var(--gc-dhp-green) !important;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .36s var(--gc-dhp-ease);
}

.gc-dhp .gc-dhp__phase {
  display: block !important;
  margin: 0 0 .375rem !important;
  padding: 0 !important;
  font-family: CodecPro-Bold, "Codec Pro", sans-serif !important;
  font-weight: 700 !important;
  font-size: .8125rem !important;
  line-height: 1.4 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--gc-dhp-text) !important;
}

.gc-dhp .gc-dhp__title {
  display: block !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  font-family: CodecPro-Bold, "Codec Pro", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.375rem !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em !important;
  color: var(--gc-dhp-ink) !important;
}

.gc-dhp .gc-dhp__list {
  display: flex !important;
  flex-direction: column !important;
  gap: .875rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gc-dhp .gc-dhp__item {
  display: grid !important;
  grid-template-columns: 1.25rem minmax(0, 1fr) !important;
  column-gap: .75rem !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gc-dhp .gc-dhp__check {
  display: block !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin: .125rem 0 0 !important;
  padding: 0 !important;
}
.gc-dhp .gc-dhp__text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: CodecPro-Regular, "Codec Pro", sans-serif !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--gc-dhp-text) !important;
  text-wrap: pretty;
}

/* ---------- Hover (nur Geräte mit Maus) ---------- */
@media (hover: hover) {
  .gc-dhp .gc-dhp__card:hover {
    background: #fff !important;
    border-color: var(--gc-dhp-line) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 21, 40, .08);
  }
  .gc-dhp .gc-dhp__card:hover .gc-dhp__bar { transform: scaleX(1); }
  .gc-dhp .gc-dhp__step:hover .gc-dhp__node { box-shadow: 0 0 0 6px rgba(30, 220, 130, .18); }
}

/* ---------- Scroll-Einblendung (nur wenn JS aktiv) ---------- */
.gc-dhp.is-js:not(.is-in) .gc-dhp__step { opacity: 0; transform: translateY(16px); }
.gc-dhp.is-js:not(.is-in) .gc-dhp__node {
  background: #fff !important;
  border-color: var(--gc-dhp-line) !important;
}
.gc-dhp.is-js:not(.is-in) .gc-dhp__line-fill { transform: scale(0); }

/* ---------- Tablet ---------- */
@media screen and (min-width: 768px) {
  .gc-dhp { padding: 3rem 1rem !important; }
  .gc-dhp .gc-dhp__card { padding: 2rem !important; }
}

/* ---------- Desktop: horizontale Zeitleiste, drei Spalten ---------- */
@media screen and (min-width: 992px) {
  .gc-dhp .gc-dhp__steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 1.5rem !important;
    max-width: none !important;
  }
  .gc-dhp .gc-dhp__step {
    display: flex !important;
    flex-direction: column !important;
  }
  .gc-dhp .gc-dhp__rail {
    position: relative !important;
    flex-direction: row !important;
    justify-content: center !important;
    margin: 0 0 1.5rem !important;
  }
  .gc-dhp .gc-dhp__node { width: 3.5rem !important; height: 3.5rem !important; font-size: 1.125rem !important; }
  /* Linie von Kreismitte+Radius bis zum nächsten Kreis (Spaltenabstand 1.5rem) */
  .gc-dhp .gc-dhp__line {
    position: absolute !important;
    top: calc(50% - 1.5px) !important;
    left: calc(50% + 1.75rem + .625rem) !important;
    width: calc(100% + 1.5rem - 3.5rem - 1.25rem) !important;
    height: 3px !important;
    margin: 0 !important;
  }
  .gc-dhp .gc-dhp__line-fill { transform-origin: left center; }
  .gc-dhp .gc-dhp__card { flex: 1 1 auto !important; margin: 0 !important; }
}

@media screen and (min-width: 1280px) {
  .gc-dhp { padding: 4rem 1rem !important; }
  .gc-dhp .gc-dhp__steps { column-gap: 2rem !important; }
  .gc-dhp .gc-dhp__line { width: calc(100% + 2rem - 3.5rem - 1.25rem) !important; }
  .gc-dhp .gc-dhp__card { padding: 2.25rem 2rem !important; }
  .gc-dhp .gc-dhp__title { font-size: 1.5rem !important; }
}

/* ---------- Phasen-Ablauf: 1 Durchlauf 01 → 02 → 03, danach Ruhezustand ---------- */
@keyframes gcDhpNode {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(30, 220, 130, .45); }
  5%   { transform: scale(1.14); box-shadow: 0 0 0 6px rgba(30, 220, 130, .35); }
  16%  { transform: scale(1);    box-shadow: 0 0 0 16px rgba(30, 220, 130, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(30, 220, 130, 0); }
}
@keyframes gcDhpCard {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 21, 40, 0); }
  6%, 28%  { box-shadow: 0 14px 32px rgba(22, 21, 40, .08); }
  36%      { box-shadow: 0 0 0 0 rgba(22, 21, 40, 0); }
}
@keyframes gcDhpBar {
  0%       { transform: scaleX(0); }
  8%, 28%  { transform: scaleX(1); }
  36%, 100% { transform: scaleX(0); }
}
@keyframes gcDhpFlow {
  0%, 8%    { transform: scale(0); }
  33%, 100% { transform: scale(1); }
}
.gc-dhp.is-in .gc-dhp__node,
.gc-dhp.is-in .gc-dhp__card,
.gc-dhp.is-in .gc-dhp__bar,
.gc-dhp.is-in .gc-dhp__line-fill {
  animation-duration: 4.5s;
  animation-iteration-count: 1;
  animation-delay: calc(1.6s + var(--i, 0) * 1.5s);
  animation-fill-mode: both;
}
.gc-dhp.is-in .gc-dhp__node { animation-name: gcDhpNode; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
.gc-dhp.is-in .gc-dhp__card { animation-name: gcDhpCard; animation-timing-function: ease-out; }
.gc-dhp.is-in .gc-dhp__bar  { animation-name: gcDhpBar;  animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
.gc-dhp.is-in .gc-dhp__line-fill { animation-name: gcDhpFlow; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
/* Nach den Durchläufen: Hover übernimmt wieder */
.gc-dhp.is-done .gc-dhp__node,
.gc-dhp.is-done .gc-dhp__card,
.gc-dhp.is-done .gc-dhp__bar { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .gc-dhp .gc-dhp__node, .gc-dhp .gc-dhp__card, .gc-dhp .gc-dhp__bar, .gc-dhp .gc-dhp__line-fill { animation: none !important; }
  .gc-dhp *, .gc-dhp *::before, .gc-dhp *::after {
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .gc-dhp .gc-dhp__step { opacity: 1 !important; transform: none !important; }
  .gc-dhp .gc-dhp__card:hover { transform: none !important; }
}
