@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --container-lg: 32rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: Inter, sans-serif;
  font-size: 16px;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

/* Shared progress bar, copied from React ProgressBar structure */
.progress-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  flex-shrink: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.progress-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.progress-brand,
.progress-actions,
.timer-pill,
.restart-button {
  display: flex;
  align-items: center;
}

.progress-brand {
  gap: 8px;
}

.progress-logo {
  max-width: 280px;
  height: 28px;
}

.progress-brand-icon {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
}

.progress-brand span {
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

.progress-actions {
  gap: 12px;
}

.timer-pill {
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  background: #f9fafb;
  font-size: 0.75rem;
  font-weight: 500;
  user-select: none;
}

.timer-pill.critical {
  border-color: #d1d5db;
  color: #dc2626;
  background: #f3f4f6;
}

.timer-pill strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.timer-pill small {
  color: currentColor;
  font-size: 10px;
  opacity: 0.7;
}

.language-toggle {
  display: flex;
  overflow: hidden;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

.language-toggle a {
  padding: 6px 12px;
  color: #6b7280;
  background: #ffffff;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.language-toggle a.active {
  color: #ffffff;
  background: #111827;
}

.restart-button {
  border: 2px solid #e5e7eb;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  color: #6b7280;
  background: #ffffff;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.step-of {
  color: #9ca3af;
  font-size: 0.75rem;
}

.step-progress {
  display: flex;
  gap: 6px;
}

.step-progress-item {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.step-progress-line {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.step-progress-line.done {
  background: #111827;
}

.step-progress-line.current {
  background: #6b7280;
}

.step-progress-item span {
  overflow: hidden;
  color: #9ca3af;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-progress-item span.current {
  color: #111827;
  font-weight: 500;
}

/* WelcomeStep */
.welcome-screen {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
}

.welcome-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.welcome-brand {
  display: flex;
  align-items: center;
}

.welcome-logo {
  max-width: 300px;
  height: 36px;
}

.welcome-brand-icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: #111827;
}

.welcome-brand span {
  color: #6b7280;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-container h1 {
  margin: 0 0 12px;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: pre-line;
}

.welcome-intro {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.625;
}

.welcome-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.welcome-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.welcome-bullet-icon {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #374151;
  background: #e5e7eb;
}

.welcome-bullet p {
  margin: 0;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.35;
}

.welcome-footer {
  margin: 0 0 20px;
  color: #9ca3af;
  font-size: 0.875rem;
}

.welcome-start,
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.welcome-start {
  padding: 16px 32px;
}

/* StepLayout + FormFields */
.step-scroll {
  flex: 1;
  overflow-y: auto;
}

.step-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 0;
}

.step-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.step-heading h1 {
  margin: 0 0 8px;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.step-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.625;
}

.step-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-form {
  gap: 0;
}

.custom-page-text {
  margin: 0 0 20px;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.question-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-block.compact {
  gap: 8px;
}

.question-block label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375;
  white-space: pre-line;
}

.question-block > label span {
  color: #6b7280;
}

.question-block > label small {
  margin-top: 2px;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
}

.question-block.is-invalid > label {
  color: #ff7258;
}

.text-input,
.text-area {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  font-size: 0.875rem;
  outline: none;
  padding: 12px 16px;
  transition: border-color 150ms ease;
}

.text-area {
  resize: none;
}

.text-input:focus,
.text-area:focus {
  border-color: #111827;
}

.text-input.is-invalid,
.text-area.is-invalid {
  border-color: #ff7258;
}

.text-input.is-invalid:focus,
.text-area.is-invalid:focus {
  border-color: #ff7258;
}

.text-input::placeholder,
.text-area::placeholder {
  color: #9ca3af;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  padding-bottom: 2px;
}

.step-actions p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.75rem;
}

.step-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 24px;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.step-next:not(:disabled):hover {
  background: #d1d5db;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.step-next:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.privacy-consent-checkbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #111827;
  cursor: pointer;
}

.privacy-consent-label {
  color: #374151;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
}

.privacy-consent-label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-consent-label a:focus-visible,
.privacy-consent-checkbox:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

.privacy-policy-page {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
}

.privacy-policy-page article {
  max-width: 900px;
  margin: 48px auto;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.privacy-policy-page h1 {
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  margin: 0 0 32px;
}

.privacy-policy-page article p,
.privacy-policy-page article ul {
  margin: 0 0 20px;
}

.privacy-policy-page article a {
  text-decoration: underline;
}

.impressum-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px clamp(32px, 4.3vw, 64px) 48px;
  color: #17182b;
}

.impressum-page::before {
  position: absolute;
  top: -278px;
  right: -170px;
  width: 760px;
  height: 330px;
  border: 1px solid #fafafa;
  border-radius: 50%;
  outline: 1px solid #f9fafb;
  outline-offset: 14px;
  content: "";
  pointer-events: none;
}

.impressum-page h1 {
  position: relative;
  margin: 0 0 128px;
  font-family: Inter, sans-serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 0.9;
  text-align: center;
}

.impressum-content {
  position: relative;
  max-width: 620px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.impressum-content > p {
  margin: 0 0 22px;
}

.impressum-content section {
  margin-top: 28px;
}

.impressum-content h2 {
  margin: 0 0 10px;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.impressum-content p {
  margin: 0;
}

.impressum-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card,
.section-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.single-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-select.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-select label,
.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  padding: 12px 16px;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.single-select label.selected,
.choice-card.selected {
  border-color: #111827;
  background: #f3f4f6;
}

.single-select.is-invalid,
.compact-select.is-invalid,
.data-known-row.is-invalid {
  border: 2px solid #ff7258;
  border-radius: 14px;
  box-shadow: none;
  margin: -6px;
  padding: 6px;
}

.single-select label:focus-visible,
.choice-card:focus-visible,
.compact-chip:focus-visible,
.priority-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.single-select input,
.choice-card input {
  display: none;
}

.radio-dot,
.choice-dot {
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid #d1d5db;
  border-radius: 999px;
}

.selected .radio-dot,
.selected .choice-dot {
  border-color: #111827;
  background: #111827;
}

.selected .radio-dot::after,
.selected .choice-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
}

.single-select strong,
.choice-card strong {
  font-size: 0.875rem;
  font-weight: 500;
}

.choice-card strong {
  font-family: Outfit, sans-serif;
}

.solution-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.solution-toggle .choice-card {
  flex: 0 0 auto;
  gap: 0;
  border-width: 1px;
  border-color: #d1d5db;
  border-radius: 10px;
  color: #374151;
  padding: 6px 12px;
}

.solution-toggle .choice-card.selected {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}

.solution-toggle .choice-card strong {
  color: inherit;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 16px;
}

.solution-challenge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-challenge-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.solution-challenge-card.is-invalid {
  border-color: #ff7258;
}

.solution-challenge-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.solution-challenge-header p {
  margin: 0;
  color: #6b7280;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 16px;
}

.solution-challenge-header strong {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375;
}

.solution-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-select.inline-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.single-select.inline-options label {
  min-height: 42px;
  flex: 0 1 auto;
  padding: 9px 12px;
}

.single-select.inline-options strong {
  white-space: nowrap;
}

.note-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  padding: 12px 16px;
}

.note-box p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.other-field {
  margin-top: 4px;
  border-color: #9ca3af;
}

.compact-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 12px;
}

.compact-select label span {
  font-family: Inter, sans-serif;
  font-size: var(--text-xs, 0.75rem);
}

.compact-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 6px 12px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  user-select: none;
}

.compact-chip:hover {
  border-color: #4b5563;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.compact-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compact-chip.is-selected,
.compact-chip.selected {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}

.compact-other {
  margin-top: 0;
}

.solution-fields .text-area:not(.compact-other) {
  border-radius: 14px;
  line-height: 20px;
}

.solution-fields .compact-other {
  border-width: 1px;
  border-color: #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.75rem;
  line-height: 16px;
  padding: 8px 12px;
}

.question-block label.compact-chip {
  gap: normal;
  font-size: 0.75rem;
  line-height: 16px;
}

.question-block label.compact-chip span {
  line-height: 16px;
}

.solution-fields .compact-select.is-invalid {
  margin: 0;
  padding: 8px;
}

/* PrioritizeStep */
.prioritize-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.drag-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #9ca3af;
  font-size: 0.75rem;
}

.priority-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  cursor: grab;
  padding: 16px 22px;
  transition: all 150ms ease;
  user-select: none;
}

.priority-card:active {
  cursor: grabbing;
}

.priority-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.priority-card.top {
  border-color: #111827;
  background: #f3f4f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.priority-rank {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
}

.priority-card.top .priority-rank {
  background: #111827;
  color: #ffffff;
}

.priority-content {
  min-width: 0;
  flex: 1;
}

.priority-content p {
  margin: 0 0 2px;
  color: #6b7280;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-card.top .priority-content p {
  color: #111827;
}

.priority-content strong {
  display: block;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.priority-content .priority-details {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.priority-grip {
  color: #d1d5db;
}

/* SummaryStep */
.section-card {
  gap: 0;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-card-header h2 {
  margin: 0;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f3f4f6;
  padding: 8px 0;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  color: #9ca3af;
  font-size: 0.75rem;
}

.info-row strong {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  white-space: pre-wrap;
}

.summary-challenge {
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 0;
}

.summary-challenge:last-child {
  border-bottom: 0;
}

.summary-challenge-heading,
.summary-challenge > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.summary-challenge-label,
.summary-challenge > div:first-child > p {
  margin: 0;
  color: #6b7280;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 16px;
}

.summary-challenge-description {
  margin: 0 0 8px;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 20px;
  white-space: pre-wrap;
}

.summary-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.75rem;
  line-height: 16px;
  padding: 6px 10px;
}

.summary-info-chip > span {
  color: #9ca3af;
  white-space: pre-line;
}

.summary-info-chip strong {
  color: #374151;
  font-weight: 500;
  white-space: pre-wrap;
}

.summary-text {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.summary-tags span {
  display: inline-block;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  padding: 2px 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}

.summary-priority-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-top: 8px;
  padding: 14px 16px;
}

.summary-priority-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

.summary-priority-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.summary-priority-body > span {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 16px;
}

.summary-priority-body > strong {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 20px;
  white-space: pre-wrap;
}

.summary-priority-body .summary-info-chips {
  margin-top: 6px;
}

.summary-muted {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
  font-style: italic;
}

/* ThankYouStep */
.thankyou-screen {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #111827;
}

.thankyou-container {
  width: 100%;
  max-width: 32rem;
  text-align: center;
}

.thankyou-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.thankyou-container h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.thankyou-container > p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.625;
}

.thankyou-summary {
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  text-align: left;
}

.thankyou-summary p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thankyou-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.thankyou-summary span {
  color: rgba(255, 255, 255, 0.6);
}

.thankyou-summary strong {
  color: #ffffff;
  font-weight: 500;
}

.site-copyright {
  display: flex;
  width: 100%;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #9ca3af;
  background: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.site-copyright--dark {
  color: rgba(255, 255, 255, 0.45);
  background: #111827;
}

.site-copyright-link {
  color: inherit;
  text-decoration: none;
}

.site-copyright-link:hover {
  text-decoration: underline;
}

.site-copyright-separator {
  opacity: 0.6;
}

.download-button {
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.thankyou-restart {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
}

.thankyou-restart:hover {
  color: #ffffff;
}

.thankyou-restart:focus-visible {
  color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ChallengeStep */
.challenge-form {
  margin: 0;
}

.challenge-page {
  display: flex;
  height: calc(100vh - var(--progress-bar-height, 101px) - 28px);
  min-height: 0;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 100px;
  background: #ffffff;
}

.challenge-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 48px;
}

.challenge-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--spacing, 0.25rem) * 5) 0;
}

.challenge-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.challenge-titlebar h1 {
  margin: 0;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

.challenge-titlebar p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

.challenge-continue {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 24px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.challenge-continue:not(:disabled):hover {
  background: #d1d5db;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.challenge-continue:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.challenge-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.challenge-tab-group,
.challenge-tab,
.challenge-add,
.challenge-tab-delete {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.challenge-tab-group,
.challenge-tab,
.challenge-add {
  gap: 8px;
  border-radius: 12px;
  font-family: Outfit, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.challenge-tab-group {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.challenge-tab {
  border: 0;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  padding: 8px 4px 8px 16px;
}

.challenge-tab-group.is-active {
  border-color: #111827;
  background: #111827;
}

.challenge-tab-group.is-active .challenge-tab,
.challenge-tab-group.is-active .challenge-tab-delete {
  color: #ffffff;
}

.challenge-tab-group.is-invalid,
.challenge-tab-group.is-active.is-invalid {
  border-color: #ff7258;
  background: #ffffff;
}

.challenge-tab-group.is-invalid .challenge-tab,
.challenge-tab-group.is-invalid .challenge-tab-delete,
.challenge-tab-group.is-active.is-invalid .challenge-tab,
.challenge-tab-group.is-active.is-invalid .challenge-tab-delete {
  color: #ff7258;
}

.challenge-tab-delete {
  width: 24px;
  height: 24px;
  justify-content: center;
  margin-right: 6px;
  border: 0;
  border-radius: 8px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.challenge-tab-delete:hover {
  color: #111827;
  background: #f3f4f6;
}

.challenge-tab-group.is-active .challenge-tab-delete:hover {
  color: #111827;
  background: #ffffff;
}

.challenge-add {
  border: 2px solid #e5e7eb;
  color: #111827;
  background: #e5e7eb;
  cursor: pointer;
  padding: 8px 16px;
}

.challenge-add span {
  font-size: 1rem;
  line-height: 1;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: visible;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.challenge-sticky-question {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -20px -20px 0;
  border-bottom: 1px solid transparent;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  padding: 20px 20px 12px;
}

.data-known-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.data-known-row .compact-chip {
  justify-content: center;
  width: 100%;
}

.challenge-footer {
  position: fixed;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 40;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.challenge-footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px;
}

.challenge-mini {
  display: flex;
  min-width: 0;
  height: 52px;
  flex: 1 1 0;
  max-width: 220px;
  align-items: center;
  gap: 8px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  color: #cbd5e1;
  background: #f9fafb;
  padding: 6px 10px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.challenge-mini.is-active {
  border-color: #d1d5db;
  color: #9ca3af;
  background: #ffffff;
}

.challenge-mini.is-invalid,
.challenge-mini.is-active.is-invalid {
  border-color: #ff7258;
  color: #ff7258;
  background: #ffffff;
}

.challenge-mini.is-active .mini-progress {
  color: var(--progress-color, #9ca3af);
}

.mini-progress {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: conic-gradient(#364153 calc(var(--progress) * 1%), #e5e7eb 0);
  color: var(--progress-color, #9ca3af);
  transition: --progress 450ms ease-in-out, color 150ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .mini-progress {
    transition: none;
  }
}

.mini-progress span {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  font-size: 9px;
  font-weight: 600;
}

.mini-content {
  min-width: 0;
  flex: 1;
}

.mini-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.mini-title > span {
  overflow: hidden;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.challenge-mini.is-active .mini-title > span {
  color: #374151;
}

.mini-title strong {
  flex-shrink: 0;
  font-family: Outfit, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #d1d5db;
  text-transform: uppercase;
}

.challenge-mini.is-active .mini-title strong {
  color: #8b919d;
}

.mini-details {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #d1d5db;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.challenge-mini.is-active .mini-details {
  color: #9ca3af;
}

.hidden-form {
  display: none;
}

.alert {
  max-width: 48rem;
  margin: 16px auto;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #7f1d1d;
  padding: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 24rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: #111827;
  background: #f3f4f6;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.modal-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
}

.modal-content h3 {
  margin: 0;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.modal-primary,
.modal-secondary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  padding: 12px 16px;
  text-decoration: none;
}

.modal-primary {
  border: 0;
  color: #ffffff;
  background: #111827;
}

.modal-primary.danger {
  background: #991b1b;
}

.modal-danger {
  border: 0;
  border-radius: 12px;
  background: #ff6b57;
  color: #ffffff;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 16px;
}

.modal-primary.muted {
  color: #111827;
  background: #e5e7eb;
}

.modal-secondary {
  border: 2px solid #e5e7eb;
  color: #374151;
  background: #ffffff;
}

.modal-delete-form {
  width: 100%;
}

.delete-challenge-modal-card {
  max-width: var(--container-lg);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.delete-challenge-modal-content {
  align-items: stretch;
  gap: 0;
  text-align: left;
}

.delete-challenge-modal-content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.15rem;
  line-height: 1.5;
}

.delete-challenge-modal-content p {
  max-width: 30rem;
  margin: 0 0 24px;
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.625;
  white-space: pre-line;
}

.delete-challenge-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.delete-challenge-modal-actions .modal-primary,
.delete-challenge-modal-actions .modal-secondary {
  min-height: 40px;
  border-radius: 12px;
  font-size: 1rem;
  padding: 8px 16px;
}

.delete-challenge-modal-actions .modal-secondary {
  border: 2px solid #e5e7eb;
  color: #374151;
}

.delete-challenge-modal-actions .modal-primary.danger {
  background: #ff6b57;
}

.summary-modal-card {
  max-width: 46rem;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.summary-modal-content {
  align-items: stretch;
  text-align: left;
}

.summary-modal-content h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
}

.summary-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-modal-form label > span {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.summary-solution-modal {
  max-width: 42rem;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.summary-solution-modal .summary-modal-content {
  gap: 0;
  max-height: 90vh;
}

.summary-solution-modal .summary-modal-content > h3 {
  padding: 16px 56px 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.1rem;
  line-height: 26px;
  flex-shrink: 0;
}

.summary-solution-modal .summary-modal-form {
  min-height: 0;
  gap: 0;
}

.summary-solution-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px;
  overflow-y: auto;
  min-height: 0;
}

.summary-solution-modal-body > * {
  flex-shrink: 0;
}

.summary-solution-modal .modal-close {
  right: 24px;
  width: 26px;
  height: 26px;
}

.summary-solution-context {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px 16px;
}

.summary-solution-context p {
  margin: 0;
  color: #111827;
  font-size: 0.875rem;
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-solution-context p:first-child {
  margin-bottom: 4px;
  color: #9ca3af;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  line-height: 16px;
}

.summary-solution-modal label.summary-solution-description {
  gap: 8px;
}

.summary-solution-modal .summary-solution-description > span {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375;
}

.summary-solution-modal .summary-solution-description .text-area {
  display: block;
  line-height: 20px;
  height: 108px;
  padding: 12px 16px;
}

.summary-solution-modal .compact-other {
  display: block;
  margin-top: 8px;
  height: 50px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  line-height: 16px;
}

.summary-solution-modal .compact-other:focus {
  border-color: #111827;
}

.summary-solution-modal .compact-chip {
  border-radius: 8px;
  padding: 6px 12px;
  line-height: 16px;
}

.summary-solution-modal .summary-modal-actions {
  flex-shrink: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.summary-solution-modal .modal-primary {
  background: #e5e7eb;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 24px;
}

.summary-solution-modal .modal-primary,
.summary-solution-modal .modal-secondary {
  width: auto;
  font-size: 14px;
  line-height: 20px;
}

.summary-solution-modal .modal-secondary {
  padding: 10px 20px;
}

.summary-solution-choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.summary-solution-choices legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375;
}

.summary-solution-choices label.compact-chip {
  flex-direction: row;
}

.summary-solution-choices label.compact-chip > span {
  color: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 16px;
}

.summary-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.summary-modal-actions.split {
  justify-content: space-between;
}

.summary-modal-actions.split > span {
  display: flex;
  gap: 12px;
}

.summary-challenge-modal-card {
  display: flex;
  max-width: 44rem;
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.summary-challenge-modal-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.summary-challenge-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
}

.summary-challenge-modal-header h3 {
  margin: 0;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.summary-challenge-modal-close {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.summary-challenge-modal-close:hover {
  color: #111827;
  background: #f3f4f6;
}

.summary-challenge-modal-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.summary-challenge-modal-body .challenge-sticky-question {
  position: static;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.summary-challenge-modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
}

.summary-challenge-modal-footer > span {
  display: flex;
  gap: 12px;
}

.summary-challenge-modal-footer .modal-primary,
.summary-challenge-modal-footer .modal-secondary {
  width: auto;
  min-width: 86px;
  padding: 10px 20px;
}

.summary-priority-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-priority-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  gap: 8px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.summary-priority-edit-row span {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
}

.summary-priority-edit-row button {
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .impressum-page {
    padding: 24px 24px 56px;
  }

  .impressum-page h1 {
    margin-bottom: 64px;
    font-size: 3.5rem;
  }

  .impressum-content {
    font-size: 0.9375rem;
  }

  .progress-top,
  .progress-actions,
  .welcome-header,
  .step-heading,
  .challenge-titlebar,
  .solution-toggle,
  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .step-of {
    display: none;
  }

  .single-select.two-columns,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .progress-logo,
  .welcome-logo {
    max-width: 220px;
  }

  .step-container,
  .challenge-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .challenge-footer-inner {
    justify-content: flex-start;
  }

  .challenge-mini {
    flex: 0 0 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
  }

  .data-known-row {
    grid-template-columns: 1fr;
  }

}
