/* ===== Container & Sections ===== */
.rodi-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px; }
.rodi-step { margin-bottom: 32px; scroll-margin-top: 80px; }
.rodi-step.hidden { display: none; }

.rodi-section { margin: 18px 0 14px; }
.rodi-section h4 { margin: 0 0 4px; }
.rodi-hint { margin: 0 0 12px; color: #555; }

/* Grid */
.rodi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 6px;
}
@media (max-width: 720px) { .rodi-grid { grid-template-columns: 1fr; } }

.rodi-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.rodi-field small { display: block; color: #666; margin-top: 6px; line-height: 1.35; }

/* ===== Buttons ===== */
.rodi-btn {
  appearance: none; border: 0; background: #781d78; color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer;
  transition: filter .15s ease-in-out, transform .02s ease-in-out;
}
.rodi-btn:hover { filter: brightness(1.05); }
.rodi-btn:active { transform: translateY(1px); }

.rodi-btn--ghost {
  background: #fff; color: #781d78; border: 2px solid #781d78;
}

.rodi-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.rodi-status { margin-top: 10px; color: #333; }

/* ===== Consent & Errors ===== */
.rodi-consent { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; }

.rodi-field.error input,
.rodi-field.error select,
.rodi-field.error textarea,
input.rodi-invalid, select.rodi-invalid, textarea.rodi-invalid {
  border: 2px solid #e43 !important;
  outline: 2px solid #e43 !important;
  outline-offset: 2px;
  border-radius: 6px;
  background-color: #fff7f7;
}
.rodi-field.error > label { color: #b10000; }

/* ===== Range Slider (einheitliche Breite) ===== */
.rodi-range-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; max-width: 420px; }
.rodi-range-row--narrow { max-width: 420px; }
.rodi-range-row output { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(to right, #781d78 var(--_val,0%), #e6e6e6 var(--_val,0%));
  outline: none; margin: 10px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #781d78; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #781d78; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
}

/* Expertenblöcke (disabled-Optik) */
.rodi-expert.disabled { opacity: .65; filter: grayscale(5%); }

#step1 > .rodi-grid { margin-bottom: 10px; } /* Extra Abstand über Experten/Extras */
