#sodiwi-wizard-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 720px;
  margin: 0 auto;
}

.sw-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 2rem;
}

/* Progress */
.sw-progress {
  margin-bottom: 1.5rem;
}

.sw-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sw-progress-pct { color: var(--sp-red, #dc2626); font-weight: 700; }

.sw-progress-track {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.sw-progress-fill {
  height: 100%;
  background: var(--sp-red, #dc2626);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Header */
.sw-header {
  margin-bottom: 1.5rem;
}

.sw-step-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  text-align: center;
}

.sw-skip-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Options grid */
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.sw-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.sw-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border: 2px solid #E7E1E2;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  text-align: left;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
}

.sw-option-label { display: block; flex: 1; }

.sw-option-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 99px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sw-option.sw-selected .sw-option-count {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.sw-option:hover    { border-color: var(--sp-red, #dc2626); background: #fef2f2; }
.sw-option.sw-selected { border-color: var(--sp-red, #dc2626); background: #fef2f2; color: #b91c1c; }


/* Buttons */
.sw-btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.sw-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.sw-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.sw-btn-primary   { background: #B31838; color: #fff; }
.sw-btn-primary:not(:disabled):hover { background: #B31838; color: #fff; }
.sw-btn-primary:hover { color: #fff; }
.sw-btn-secondary { background: #f3f4f6; color: #374151; }
.sw-btn-secondary:hover { background: #e5e7eb; color: #374151; }
.sw-btn-ghost { background: transparent; color: var(--sp-red, #dc2626); padding-left: 0.25rem; padding-right: 0.25rem; }
.sw-btn-ghost:hover { opacity: 0.75; background: transparent; color: var(--sp-red, #dc2626); }
.sw-btn-full  { width: 100%; }
.sw-btn-flex  { flex: 1; }

/* Einheitlicher Style für die Buttons in der Schritt-Navigation */
.sw-btn-row .sw-btn,
.sw-btn-row .sw-btn:hover {
  border: 0;
  border-radius: 60px;
  background-color: #B31838;
  color: #fff;
  font-family: "The Mix", sans-serif;
}

/* Round buttons in result screen */
.sw-card-results .sw-btn {
  border-radius: 999px;
  font-size: 0.88rem;
}

/* Spinner color */

/* Loading */
.sw-loading {
  text-align: center;
  padding: 2.5rem 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.sw-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--sp-red, #dc2626);
  border-radius: 50%;
  animation: sw-spin 0.7s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes sw-spin { to { transform: rotate(360deg); } }

/* ── Result screen ───────────────────────────────────────────────────────── */

/* Wider card for the result list */
#sodiwi-wizard-root .sw-card-results {
  max-width: 840px;
  margin-inline: auto;
}

/* Error state */
.sw-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.sw-icon-error { background: #fee2e2; }

.sw-result-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}
.sw-result-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Header */
.sw-result-header {
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.sw-result-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.sw-result-title-main {
  font-family: "The Mix", sans-serif;
  font-size: 1.9rem;
  font-weight: 850;
  color: #111827;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.sw-result-count {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Partner cards list */
.sw-result-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.sw-result-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  align-items: center;
}

/* Left: icon */
.sw-rc-icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-rc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sw-rc-icon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d1d5db;
  display: block;
}

/* Middle: content */
.sw-rc-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sw-rc-badge-sodiwi {
  display: inline-block;
  align-self: flex-start;
  background: var(--sp-red, #dc2626);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
}

.sw-rc-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-rc-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sw-rc-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}

.sw-rc-location-icon { font-size: 0.75rem; }

/* Right: action buttons */
.sw-rc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 148px;
}

/* Footer */
.sw-result-footer {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #e5e7eb;
}

.sw-result-footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.4rem;
}

.sw-result-footer-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.sw-result-footer-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile: stack card columns */
@media (max-width: 600px) {
  .sw-result-card {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    align-items: start;
  }
  .sw-rc-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    min-width: 0;
  }
  .sw-rc-actions .sw-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Error box */
.sw-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  color: #b91c1c;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .sw-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .sw-grid { grid-template-columns: 1fr; }
  .sw-card { padding: 1.25rem; }
}
