/* Story-Mode styles, appended to main stylesheet */

.story-shell {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Zweite Zeile unter der Hauptnavigation: Modus, Fortschritt, Aktionen */
.story-top {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.story-top-inner {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}
.story-top-l { display: flex; align-items: center; gap: var(--gap-label); flex-wrap: nowrap; min-width: 0; }
.story-top-title { font-weight: 600; font-size: 1rem; line-height: var(--lh-ui); white-space: nowrap; }
.story-top-mode { font-size: var(--fs-control); line-height: var(--lh-ui); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.story-top-c { display: flex; flex-direction: column; gap: var(--space-sm); }
.story-prog { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.story-prog-bar { height: 100%; background: var(--pink); transition: width .35s ease; }
.story-top-step { font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.story-top-r { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }
/* Kleine Knöpfe wie .btn aus global.scss */
.story-top-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink); border: 2px solid var(--line-strong);
  font: inherit; font-size: var(--fs-control); line-height: var(--lh-ui); padding: var(--pad-btn-sm); border-radius: var(--radius); cursor: pointer;
}
.story-top-link:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.story-top-link.is-pro { border-color: var(--pink); }
.story-top-link.is-pro:hover { border-color: var(--ink); }

.story-main {
  max-width: 824px;
  width: 100%;
  margin: 0 auto;
  padding: var(--pad-page-top) var(--space-lg) var(--pad-section-end);
  flex: 1;
}

.story-q {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: 42px; line-height: var(--lh-title); margin: 0 0 var(--gap-title);
  text-wrap: balance; color: var(--ink);
}
.story-sub {
  font-size: var(--fs-lead); line-height: var(--lh-text); color: var(--ink-soft);
  margin: 0 0 var(--gap-text); max-width: 62ch;
}

.story-opts { display: flex; flex-direction: column; gap: var(--gap-card); margin-bottom: var(--gap-text); }
.story-opt {
  text-align: left; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: var(--pad-card); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s ease, background .15s ease; width: 100%;
}
.story-opt:hover { border-color: var(--ink); }
/* Auswahl: voller Rahmen in Pink, Fläche bleibt neutral */
.story-opt.is-sel { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.story-opt-head {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.1rem; line-height: 1.3; font-weight: 600; color: var(--ink); margin-bottom: var(--space-sm);
}
.story-opt-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.story-opt.is-sel .story-opt-icon { background: var(--pink-strong); color: var(--on-pink); }
.story-opt-title { flex: 1; }
.story-opt-tag { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.story-opt-detail {
  font-size: 1rem; line-height: var(--lh-text); color: var(--ink-soft);
  padding-left: 44px;
}

.story-followup {
  margin: 0 0 0 44px; padding: var(--pad-card-sm);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.story-followup-q {
  font-weight: 600; margin-bottom: var(--gap-label); color: var(--ink); font-size: 1rem; line-height: 1.35;
}
.story-input {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  border-radius: var(--radius); padding: var(--pad-control); font: inherit; font-size: var(--fs-control); line-height: var(--lh-ui);
  box-sizing: border-box;
}
.story-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-tint); }
.story-mini-hint {
  font-size: var(--fs-control); color: var(--muted); margin-top: var(--space-sm); line-height: 1.5;
}

/* Chips wie die Themen-Chips im Kontaktformular der Webseite (.sp-chip) */
.story-chip-grid { display: flex; flex-wrap: wrap; gap: var(--gap-chip); }
.story-chip {
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: var(--pad-chip); font: inherit; font-size: var(--fs-chip); line-height: var(--lh-ui); font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.story-chip:hover { border-color: var(--pink); background: var(--pink-soft); }
.story-chip.is-sel { background: var(--pink-strong); color: var(--on-pink); border-color: var(--pink-strong); }

.story-ivr-list { display: flex; flex-direction: column; gap: var(--gap-label); }
.story-ivr-row { display: grid; grid-template-columns: 34px 1fr 38px; gap: var(--gap-label); align-items: center; }
.story-ivr-key {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: var(--fs-control);
}
.story-ivr-rm, .story-team-rm {
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  width: 38px; height: 38px; cursor: pointer; color: var(--ink-soft); font-size: 16px;
}
.story-ivr-rm:hover, .story-team-rm:hover:not(:disabled) {
  color: var(--bg); background: var(--ink); border-color: var(--ink);
}
.story-ivr-add, .story-team-add {
  background: transparent; border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--pad-btn-sm); font: inherit; font-size: var(--fs-control); line-height: var(--lh-ui); font-weight: 600; cursor: pointer;
  color: var(--ink); margin-top: var(--space-xs); align-self: flex-start;
}
.story-ivr-add:hover, .story-team-add:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.story-team {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--pad-card); margin-bottom: var(--gap-text);
}
.story-team-head, .story-team-row {
  display: grid; grid-template-columns: 1.2fr 1.4fr 0.7fr 38px;
  gap: var(--gap-label); align-items: center; padding: 6px 0;
}
.story-team-head {
  font-size: var(--fs-small); line-height: var(--lh-ui); font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: var(--gap-label);
  margin-bottom: var(--space-xs);
}
.story-team-row { padding: var(--space-sm) 0; }
.story-team-rm:disabled { opacity: 0.3; cursor: not-allowed; }

.story-acts {
  display: flex; justify-content: space-between; align-items: center; gap: var(--gap-row);
  padding-top: var(--space-lg); border-top: 1px solid var(--line); margin-top: var(--space-lg);
}
.story-acts-r { display: flex; gap: var(--gap-row); }

/* Buttons wie auf 360sec.de (.submit-btn): Pink gefüllt, Hover invertiert */
.story-btn {
  font: inherit; font-size: 1rem; line-height: var(--lh-ui); font-weight: 600; padding: var(--pad-btn); border-radius: var(--radius);
  cursor: pointer; border: 2px solid var(--line-strong); background: transparent; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-sm);
}
.story-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.story-btn-prim { background: var(--pink-strong); color: var(--on-pink); border-color: var(--pink-strong); }
.story-btn-prim:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.story-btn-prim:disabled,
.story-btn-prim:disabled:hover { cursor: not-allowed; background: var(--surface-2); border-color: var(--line-strong); color: var(--muted); }
.story-btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: transparent; color: var(--ink-soft); border: 2px solid var(--line);
  font: inherit; font-size: 1rem; line-height: var(--lh-ui); font-weight: 500; padding: var(--pad-btn); border-radius: var(--radius); cursor: pointer;
}
.story-btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.story-btn-ghost:disabled,
.story-btn-ghost:disabled:hover { opacity: 0.4; cursor: not-allowed; color: var(--ink-soft); border-color: var(--line); }

/* Summary screen */
.story-summary { padding-bottom: var(--space-lg); }
.story-summary-card {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--gap-text);
}
.story-summary-card h2 {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: 36px; line-height: var(--lh-heading); margin: 0 0 var(--gap-subtitle);
}
.story-summary-card p {
  color: var(--ink-soft); font-size: var(--fs-lead); line-height: var(--lh-text); margin: 0;
  max-width: 52ch;
}

.story-summary-head {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: 24px; line-height: var(--lh-heading); margin: 0 0 var(--gap-subtitle); color: var(--ink);
}

.story-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card);
  margin-bottom: var(--gap-text);
}
.story-summary-cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--pad-card-sm);
}
/* Beschriftung und Wert wie .info-card-label / .info-card-value im Kontaktbereich der Webseite */
.story-summary-label {
  font-size: var(--fs-caption); line-height: var(--lh-ui); text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: var(--space-xs);
}
.story-summary-value {
  font-size: var(--fs-control); color: var(--ink); font-weight: 500; line-height: 1.4;
}

.story-send-options { display: flex; flex-direction: column; gap: var(--gap-card); margin-bottom: var(--gap-text); }
.story-send-option {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--pad-card-sm); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.story-send-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pink); font-size: 17px; flex-shrink: 0;
}
.story-send-text { flex: 1; }
.story-send-title { font-size: 1rem; line-height: var(--lh-ui); font-weight: 600; color: var(--ink); }
.story-send-detail { font-size: var(--fs-control); color: var(--muted); margin-top: var(--space-xs); line-height: 1.5; }

.story-summary-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-lg); border-top: 1px solid var(--line); flex-wrap: wrap; gap: var(--gap-row);
}
.story-summary-foot-note { font-size: var(--fs-control); color: var(--muted); }

@media (max-width: 860px) {
  .story-top-inner { grid-template-columns: 1fr; gap: var(--gap-label); width: 100%; padding: 0 var(--gutter); }
  .story-top-r { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .story-main { padding: var(--pad-page-top) var(--gutter) var(--pad-section-end); }
  .story-q { font-size: 32px; }
  .story-summary-card { padding: var(--pad-card); }
  .story-summary-card h2 { font-size: 30px; }
  .story-summary-grid { grid-template-columns: 1fr; }
  .story-team-head, .story-team-row { grid-template-columns: 1fr; }
  .story-team-head { display: none; }
  .story-opt-detail { padding-left: 0; }
  .story-followup { margin-left: 0; }
  .story-send-option { flex-wrap: wrap; }
  .story-acts { flex-direction: column; align-items: stretch; gap: var(--gap-row); }
  .story-acts-r { flex-direction: column-reverse; }
  .story-btn, .story-btn-ghost, .story-btn-prim { justify-content: center; }
}


/* Intro / Welcome question */
.story-intro-fields { display: flex; flex-direction: column; gap: var(--gap-field); margin-bottom: var(--gap-text); }
.story-field { display: flex; flex-direction: column; gap: var(--gap-label); }
.story-field-label {
  font-size: 1rem; line-height: 1.35; font-weight: 600; color: var(--ink);
}
.story-req { color: var(--pink-text); margin-left: 2px; }
.story-intro-perks {
  padding: var(--pad-card-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.story-intro-perk {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-control); color: var(--ink-soft);
}
.story-intro-perk-icon { display: inline-flex; color: var(--pink); flex-shrink: 0; }


.story-summary-skipped {
  margin-top: var(--space-md);
  padding: var(--pad-control);
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: var(--fs-control);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.story-summary-skipped span {
  color: var(--pink-text);
  font-weight: 700;
  font-size: 1rem;
}
