/* ==========================================================
   Journey Intake / Multistep-Formular
   gleiche Grundlogik wie Hero:
   farbige Section + breiter Container + Rundbild/ST-Ligatur
   ========================================================== */

.bg-sanabeige {
  background-color: #f3efeb;
}

.journey-intake-shell {
  --journey-bg: #f3efeb;
  --journey-accent: #00978D;
  --journey-st-svg: url("../img/st_ligatur.svg");
  overflow: hidden;
}

.grid-container.journey-wide {
  max-width: 70rem;
}

.journey-stage {
  position: relative;
}

.journey-content {
  position: relative;
  z-index: 1;
}

.journey-kicker {
  color: #333;
  margin-bottom: .35rem;
}

.journey-title,
.journey-visual-claim {
  color: #b5b1d8;
}

/* Fortschritt */
.journey-steps {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 2rem 0 2.35rem 0;
}

.journey-step-line {
  flex: 1;
  height: 1.5px;
  background: var(--journey-accent);
  opacity: .35;
}

.journey-step {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--journey-accent);
  background: transparent;
  color: var(--journey-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "EuclidSemibold", Helvetica, Arial, Roboto, sans-serif;
  font-size: 1.063rem;
  line-height: 1;
}

.journey-step-number {
  display: inline-block;
}

.journey-step-check {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
}

.journey-step-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.journey-step.is-active,
.journey-step.is-complete {
  background: var(--journey-accent);
  border-color: var(--journey-accent);
  color: #fff;
}

.journey-step.is-complete .journey-step-number {
  display: none;
}

.journey-step.is-complete .journey-step-check {
  display: block;
  animation: journey-check-pop .18s ease-out;
}

.journey-step.is-complete .journey-step-check path {
  animation: journey-check-draw .35s ease-out forwards;
}

@keyframes journey-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes journey-check-pop {
  0% {
    transform: scale(.82);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Panels */
.journey-panel {
  display: none;
}

.journey-panel.is-active {
  display: block;
}

/* Fragen / Hilfstexte */
.journey-question-header {
  margin-top: 0;
  margin-bottom: 1rem;
}

.journey-question-header-secondary {
  margin-top: 1.7rem;
}

.journey-helper {
  margin-top: -.25rem;
  margin-bottom: .85rem;
  color: #666;
}

.journey-label {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: 1.063rem;
  line-height: 1.5;
  color: #333;
}

/* Inputs */
.journey-input {
  width: 100%;
  margin-bottom: 1rem;
  padding: .5rem;
  border: 1px solid #cacaca;
  border-radius: 0;
  background: #fefefe;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(10, 10, 10, .1);
}

.journey-input::placeholder {
  color: #cacaca;
}

.journey-input:focus {
  border-color: #8a8a8a;
  background: #fefefe;
  box-shadow: 0 0 5px #cacaca;
}

.journey-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
  background-origin: content-box;
  background-repeat: no-repeat;
  background-position: right -1rem center;
  background-size: 9px 6px;
  padding-right: 1.5rem;
}

.journey-textarea {
  min-height: 150px;
  resize: vertical;
}

.journey-charcount {
  margin-top: -.25rem;
  margin-bottom: 1.35rem;
  color: #666;
  font-size: .98rem;
}

/* Checkboxen */
.journey-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1.063rem;
  line-height: 1.5;
  color: #333;
}

.journey-check input[type="checkbox"] {
  width: auto;
  height: auto;
  min-width: 0;
  flex-shrink: 0;
  margin-top: .35rem;
  accent-color: var(--journey-accent);
}

.journey-check-consent {
  margin-top: 1.6rem;
  margin-bottom: 1.75rem;
}

/* Buttons */
.journey-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.journey-actions-single {
  justify-content: flex-start;
}

.journey-button {
  min-width: 8rem;
  margin: 0;
}

/* Erfolgsmeldung */
.journey-successbox {
  margin-top: 2rem;
  background-color: var(--journey-accent);
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 0;
}

.journey-successbox[hidden] {
  display: none !important;
}

.journey-successbox svg {
  width: 2rem;
  height: 2rem;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Visual rechts */
.journey-visual {
  position: relative;
}

/* Optional: Bildblock bei langem Formular ruhig halten */
@media (min-width: 64em) {
  .journey-visual {
    position: sticky;
    top: 5.5rem;
  }
}

/* Rundbild-Logik analog Hero */
.journey-round-image {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1;
}

.journey-round-crop {
  margin: 0;
  width: 100%;
  height: 100%;
  background-color: var(--st-color-lavender, #B5B1D8);
  border-radius: 50%;
  overflow: hidden;
}

.journey-round-crop img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

/* ST-Ligatur:
   gleiche Logik wie Hero, aber in Beige statt Grün */
.journey-st-ligature {
  display: none;
  position: absolute;
  right: 5%;
  bottom: 14%;
  width: 32%;
  height: 39%;
  background-color: var(--journey-bg);

  -webkit-mask: var(--journey-st-svg) center / contain no-repeat;
  mask: var(--journey-st-svg) center / contain no-repeat;

  pointer-events: none;
  z-index: 2;
}

.journey-visual-claim {
  margin: 1.5rem 0 0 0;
}

/* Honeypot */
.journey-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Tablet und kleiner */
@media (max-width: 63.9375em) {
  .journey-visual {
    position: relative;
    top: auto;
    padding-top: 0;
  }

  .journey-round-image {
    max-width: 25rem;
    margin: 2rem auto 0 auto;
  }

  .journey-st-ligature {
    right: 3%;
    bottom: 1%;
    width: 36%;
    height: 36%;
  }
}

/* Mobile */
@media (max-width: 39.9375em) {
  .journey-step {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    font-size: 1rem;
  }

  .journey-actions {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 30px !important;
  }

  .journey-button {
    width: 100%;
    text-align: center;
  }

  .journey-round-image {
    max-width: 20rem;
  }

  .journey-visual-claim {
    text-align: center !important;
  }
}
