/* ===========================================
   STRESSTEST (//mm) — seitenspezifische Styles
   nutzt die globalen Tokens aus tokens.css
   =========================================== */

/* ---------- Hero / Intro (auf dunkelblau) ---------- */
.st-hero { max-width: 820px; }
.st-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--brand-hellgruen);
  margin-bottom: 1rem;
}
.st-hero__headline {
  font-family: var(--font-headline);
  text-transform: lowercase;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--brand-weissgrau);
  margin-bottom: 1.5rem;
}
.st-hero__text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--brand-weissgrau);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.st-scrolldown { margin-top: 0.5rem; }
.st-disclaimer {
  font-size: 0.85rem;
  color: rgba(240, 243, 245, 0.75);
  margin-top: 1.75rem;
  max-width: 55ch;
}
.st-danke-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Zweiter heller Button (Outline) */
.btn--ghost-light {
  background: transparent;
  color: var(--brand-weissgrau);
  border: 2px solid var(--brand-weissgrau);
}
.btn--ghost-light:hover { background: var(--brand-weissgrau); color: var(--brand-dunkelblau); }

/* ---------- Formular ---------- */
.st-form { max-width: 820px; }
.st-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.st-step-title {
  font-family: var(--font-headline);
  color: var(--brand-dunkelblau);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* Fortschritt */
.st-progress {
  position: sticky;
  top: calc(var(--navbar-height, 80px) + 4px);
  z-index: 5;
  height: 8px;
  background: #dfe6ea;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.st-progress__bar {
  height: 100%;
  width: 0;
  background: var(--brand-hellgruen);
  transition: width 0.3s ease;
}
.st-progress__label { font-size: 0.85rem; color: var(--c-deep-gray); margin-bottom: 2rem; }

/* Fragen */
.st-questions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.st-question {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.st-question.is-answered { border-color: var(--brand-hellgruen); }
.st-question__text { font-size: 1.05rem; font-weight: 600; color: var(--brand-dunkelblau); margin-bottom: 1rem; }
.st-question__num { color: var(--brand-petrol); margin-right: 0.35rem; }

.st-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.st-option { position: relative; display: block; cursor: pointer; }
.st-option input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.st-option__box {
  display: block;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-deep-gray);
  background: #fff;
  transition: all 0.15s ease;
}
.st-option:hover .st-option__box { border-color: var(--brand-petrol); }
.st-option input:checked + .st-option__box {
  background: var(--brand-dunkelblau);
  border-color: var(--brand-dunkelblau);
  color: #fff;
}
.st-option input:focus-visible + .st-option__box {
  outline: 2px solid var(--brand-petrol);
  outline-offset: 2px;
}

/* Kontaktbereich */
.st-contact {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 12px);
  padding: 2rem 1.75rem;
  margin-top: 2.5rem;
}
.st-contact__title { font-family: var(--font-headline); color: var(--brand-dunkelblau); font-size: 1.5rem; margin-bottom: 1.5rem; }
.st-field-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.st-field { flex: 1 1 200px; margin-bottom: 1rem; }
.st-field--sm { flex: 0 1 140px; }
.st-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-deep-gray); margin-bottom: 0.35rem; }
.st-field input, .st-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--brand-dunkelblau);
}
.st-field input:focus, .st-field select:focus { outline: none; border-color: var(--brand-petrol); }

.st-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-deep-gray);
  cursor: pointer;
}
.st-check input { margin-top: 0.2rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand-petrol); }
.st-check a { color: var(--brand-petrol); font-weight: 600; }
.st-check em { color: var(--c-muted); font-style: normal; }

.st-submit { margin-top: 1.75rem; width: 100%; }
.st-submit__note { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.75rem; }

/* ---------- Geführte Navigation (Blättern) ---------- */
.st-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.st-nav__info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-deep-gray);
  text-align: center;
}
.st-nav__btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--brand-dunkelblau);
  background: var(--brand-dunkelblau);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.st-nav__btn:hover { background: var(--brand-petrol); border-color: var(--brand-petrol); }
.st-nav__back { background: transparent; color: var(--brand-dunkelblau); }
.st-nav__back:hover { background: var(--brand-dunkelblau); color: #fff; }

/* Unbeantwortete Frage beim Weiterblättern hervorheben */
.st-question--error {
  border-color: var(--brand-pfirsich, #F3B36F);
  box-shadow: 0 0 0 2px rgba(243, 179, 111, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .st-options { grid-template-columns: repeat(2, 1fr); }
  .st-question { padding: 1rem 1.1rem; }
  .st-contact { padding: 1.5rem 1.1rem; }
  .st-field--sm { flex: 1 1 100%; }
  .st-nav__btn { padding: 0.65rem 1.1rem; }
  .st-nav__info { font-size: 0.8rem; }
}
