/* Lungenkrebsscreening Selbsttest – scoped under .lungscreening */

.lungscreening {
  --ls-orange: var(--color-brand, #F08200);

  --ls-radius: 16px;
  --ls-radius-sm: 12px;
  --ls-border: 1px solid rgba(92, 108, 120, .25);
  --ls-focus: 0 0 0 4px rgba(240, 130, 0, .25);

  --ls-ok: #2E8B57;
  --ls-bad: #C62828;
  --ls-warn: var(--ls-orange);
}

.lungscreening .ls-card {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(92, 108, 120, .12);
}

.lungscreening header .ls-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.lungscreening header p {
  margin: 0;
}

/* Progress */
.lungscreening .ls-progress {
  margin: 16px 0 10px;
}

.lungscreening .ls-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.lungscreening .ls-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 108, 120, .18);
  background: rgba(242, 244, 248, .5);
  white-space: nowrap;
}

.lungscreening .ls-bar {
  width: 100%;
  height: 10px;
  background: rgba(173, 200, 212, .35);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(92, 108, 120, .12);
}

.lungscreening .ls-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ls-orange);
  transition: width .25s ease;
}

/* Steps */
.lungscreening .ls-step {
  display: none;
  margin-top: 12px;
}

.lungscreening .ls-step.active {
  display: block;
}

.lungscreening .ls-q {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.lungscreening .ls-sub {
  margin: -6px 0 14px;
}

/* Input */
.lungscreening .ls-input {
  display: inline-flex;
  align-items: stretch;
  border: var(--ls-border);
  border-radius: var(--ls-radius-sm);
  overflow: hidden;
  min-width: min(560px, 100%);
}

.lungscreening .ls-input:focus-within {
  box-shadow: var(--ls-focus);
  border-color: rgba(240, 130, 0, .65);
}

.lungscreening .ls-input input {
  border: none;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  min-width: 0;
}

.lungscreening .ls-input select {
  border: none;
  background: rgba(242, 244, 248, .8);
  padding: 10px 12px;
  outline: none;
  border-right: 1px solid rgba(92, 108, 120, .2);
  min-width: 220px;
}

.lungscreening .ls-suffix {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(242, 244, 248, .8);
  border-left: 1px solid rgba(92, 108, 120, .2);
  white-space: nowrap;
}

.lungscreening .ls-hint {
  margin-top: 8px;
}

/* Choices (radio groups) */
.lungscreening .ls-choices {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.lungscreening .ls-choice {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--ls-radius-sm);
  border: var(--ls-border);
  background: rgba(242, 244, 248, .25);
  cursor: pointer;
}

.lungscreening .ls-choice:hover {
  border-color: rgba(240, 130, 0, .55);
  background: rgba(242, 244, 248, .5);
}

.lungscreening .ls-choice input {
  margin-top: 2px;
}

/* Actions */
.lungscreening .ls-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.lungscreening .ls-btn {
  appearance: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid var(--ls-orange);
  background: transparent;
  color: inherit;
  transition: background .12s ease, color .12s ease, font-weight .12s ease, transform .02s ease;
  min-width: 120px;
  touch-action: manipulation;
}

.lungscreening .ls-btn:hover {
  font-weight: 700;
}

.lungscreening .ls-btn:active {
  transform: translateY(1px);
}

.lungscreening .ls-btn:focus-visible {
  outline: 3px solid var(--ls-orange);
  outline-offset: 2px;
}

.lungscreening .ls-btn.ls-primary {
  background: var(--ls-orange);
  color: #fff;
}

.lungscreening .ls-btn.ls-ghost {
  border-color: rgba(92, 108, 120, .25);
}

/* Error */
.lungscreening .ls-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--ls-radius-sm);
  border: 1px solid rgba(199, 1, 125, .35);
  background: rgba(199, 1, 125, .06);
  display: none;
}

/* Result */
.lungscreening .ls-resultShell {
  border-radius: var(--ls-radius);
  border: 1px solid rgba(92, 108, 120, .16);
  background: rgba(242, 244, 248, .45);
  overflow: hidden;
}

.lungscreening .ls-resultHero {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(92, 108, 120, .14);
  background: linear-gradient(0deg, rgba(240, 130, 0, .10), rgba(240, 130, 0, .10)), #fff;
}

.lungscreening .ls-resultHero.bad {
  background: linear-gradient(0deg, rgba(92, 108, 120, .10), rgba(92, 108, 120, .10)), #fff;
}

.lungscreening .ls-resultHero.warn {
  background: linear-gradient(0deg, rgba(240, 130, 0, .08), rgba(240, 130, 0, .08)), #fff;
}

.lungscreening .ls-heroTop {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lungscreening .ls-heroTitle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .2px;
}

.lungscreening .ls-heroIcon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 130, 0, .18);
  color: var(--ls-orange);
  font-size: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 130, 0, .35);
}

.lungscreening .ls-resultHero.bad .ls-heroIcon {
  background: rgba(92, 108, 120, .15);
  color: inherit;
  border-color: rgba(92, 108, 120, .25);
}

.lungscreening .ls-resultHero.warn .ls-heroIcon {
  background: rgba(240, 130, 0, .16);
  color: var(--ls-orange);
  border-color: rgba(240, 130, 0, .35);
}

.lungscreening .ls-reasonList {
  margin: 10px 0 0 18px;
  padding: 0;
}

.lungscreening .ls-reasonList li {
  margin: 4px 0;
}

.lungscreening .ls-heroKernaussage {
  margin: 10px 0 0;
  max-width: 90ch;
}

.lungscreening .ls-resultBody {
  padding: 16px;
}

.lungscreening .ls-sectionTitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 750;
}

/* KPI rows */
.lungscreening .ls-kpi {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.lungscreening .ls-kpi .ls-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed rgba(92, 108, 120, .22);
  padding: 10px 12px;
  border-radius: var(--ls-radius-sm);
  background: rgba(255, 255, 255, .7);
}

.lungscreening .ls-kpi .ls-row .ls-right {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.lungscreening .ls-kpi .ls-row span:first-child {
  font-weight: 650;
}

/* Status badges */
.lungscreening .ls-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  white-space: nowrap;
}

.lungscreening .ls-status .ls-ico {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  border: 1px solid transparent;
}

.lungscreening .ls-status.ok {
  color: var(--ls-ok);
}

.lungscreening .ls-status.ok .ls-ico {
  background: rgba(46, 139, 87, .12);
  border-color: rgba(46, 139, 87, .35);
  color: var(--ls-ok);
}

.lungscreening .ls-status.bad {
  color: var(--ls-bad);
}

.lungscreening .ls-status.bad .ls-ico {
  background: rgba(198, 40, 40, .10);
  border-color: rgba(198, 40, 40, .30);
  color: var(--ls-bad);
}

.lungscreening .ls-status.warn {
  color: var(--ls-warn);
}

.lungscreening .ls-status.warn .ls-ico {
  background: rgba(240, 130, 0, .12);
  border-color: rgba(240, 130, 0, .35);
  color: var(--ls-warn);
}

/* Calculation box */
.lungscreening .ls-calc {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--ls-radius-sm);
  border: 1px solid rgba(92, 108, 120, .16);
  background: rgba(255, 255, 255, .7);
}

.lungscreening .ls-calcRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.lungscreening .ls-calcLeft {
  flex: 1 1 420px;
  min-width: min(420px, 100%);
}

.lungscreening .ls-calcRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 200px;
  margin-left: auto;
}

.lungscreening .ls-calcValue {
  font-weight: 800;
  white-space: nowrap;
}

.lungscreening .ls-calc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
}

.lungscreening .ls-note {
  margin-top: 14px;
}

.lungscreening .ls-link {
  color: var(--ls-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Info box */
.lungscreening .ls-info-box {
  background: rgba(242, 244, 248, .8);
  border: 1px solid rgba(92, 108, 120, .18);
  border-left: 4px solid var(--ls-orange);
  border-radius: var(--ls-radius-sm);
  padding: 16px 18px;
  margin: 18px 0 22px 0;
  line-height: 1.5;
}

.lungscreening .ls-info-box p {
  margin: 0 0 10px 0;
}

.lungscreening .ls-info-box p:last-child {
  margin-bottom: 0;
}

.lungscreening .ls-info-box a {
  color: var(--ls-orange);
  font-weight: 600;
  text-decoration: none;
}

.lungscreening .ls-info-box a:hover {
  text-decoration: underline;
}

.lungscreening .ls-info-list {
  margin: 8px 0 10px 18px;
  padding: 0;
}

.lungscreening .ls-info-list li {
  margin: 6px 0;
}

.lungscreening .ls-info-linkrow {
  margin-top: 8px;
}

.lungscreening .ls-info-title {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Focus visible for interactive elements */
.lungscreening input:focus-visible,
.lungscreening select:focus-visible {
  outline: 3px solid var(--ls-orange);
  outline-offset: 2px;
}

.lungscreening .ls-choice:has(input:focus-visible) {
  box-shadow: var(--ls-focus);
  border-color: rgba(240, 130, 0, .65);
}

/* Mobile */
@media (max-width: 520px) {
  .lungscreening .ls-heroTitle {
    font-size: 22px;
  }

  .lungscreening .ls-input {
    min-width: 100%;
  }

  .lungscreening .ls-input select {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(92, 108, 120, .2);
  }

  .lungscreening .ls-suffix {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(92, 108, 120, .2);
    justify-content: flex-start;
  }

  .lungscreening .ls-btn {
    width: 100%;
  }

  .lungscreening .ls-actions {
    flex-direction: column-reverse;
  }

  .lungscreening .ls-kpi .ls-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lungscreening .ls-kpi .ls-row .ls-right {
    justify-content: flex-start;
    text-align: left;
  }

  .lungscreening .ls-calcRight {
    align-items: flex-start;
  }

  .lungscreening .ls-calcValue {
    white-space: normal;
  }
}


