/* ============================================================
   REISEDESIGN WIZARD 2.0 — Complete Styles
   Dark-Luxury-Design: #0d0f12 bg, #C8A96A gold, Inter/Playfair
   ============================================================ */

/* --- Variables --- */
:root {
  --rd-bg: #0d0f12;
  --rd-bg-card: #181b22;
  --rd-gold: #C8A96A;
  --rd-gold-dim: rgba(200, 169, 106, 0.3);
  --rd-gold-glow: rgba(200, 169, 106, 0.25);
  --rd-white: #FFFFFF;
  --rd-muted: #999999;
  --rd-border: #333333;
  --rd-border-hover: #555555;
  --rd-danger: #e74c3c;
  --rd-success: #27ae60;
  --rd-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --rd-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --rd-radius: 8px;
  --rd-transition: 200ms ease;
}

/* --- Wizard Container --- */
.rd-wizard {
  background: var(--rd-bg);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* --- Progress Bar --- */
.rd-progress {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.rd-progress__bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.rd-progress__bar-fill {
  height: 100%;
  background: var(--rd-gold);
  transition: width 400ms ease;
  border-radius: 0 2px 2px 0;
}

.rd-progress__phases {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 10px 16px 8px;
}

.rd-progress__phase {
  font-family: var(--rd-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-muted);
  transition: color var(--rd-transition);
  white-space: nowrap;
}

.rd-progress__phase--active {
  color: var(--rd-gold);
}

.rd-progress__phase--done {
  color: rgba(200, 169, 106, 0.5);
}

/* --- Step Container --- */
.rd-steps {
  position: relative;
  min-height: 100vh;
}

.rd-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  overflow-y: auto;
}

.rd-step--active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.rd-step--exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.rd-step--exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* --- Step Content --- */
.rd-step__content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.rd-step__headline {
  font-family: var(--rd-font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--rd-white);
  margin: 0 0 8px;
  line-height: 1.3;
}

.rd-step__subline {
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  color: var(--rd-muted);
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- Image Cards Grid --- */
.rd-cards {
  display: grid;
  gap: 16px;
  margin: 0 auto 16px;
  max-width: 1000px;
}

.rd-cards--8 { grid-template-columns: repeat(4, 1fr); }
.rd-cards--5 { grid-template-columns: repeat(5, 1fr); max-width: 900px; }
.rd-cards--10 { grid-template-columns: repeat(5, 1fr); }
.rd-cards--6 { grid-template-columns: repeat(3, 1fr); max-width: 800px; }
.rd-cards--7 { grid-template-columns: repeat(4, 1fr); max-width: 900px; }
.rd-cards--4 { grid-template-columns: repeat(4, 1fr); max-width: 800px; }

/* --- Zielgebiet & Prefs group toggle --- */
.rd-ziel-group,
.rd-prefs-group {
  /* Shown/hidden by JS via style.display */
}

/* --- Image Card --- */
.rd-card {
  position: relative;
  border-radius: var(--rd-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--rd-border);
  transition: border-color var(--rd-transition), box-shadow var(--rd-transition), transform var(--rd-transition);
  aspect-ratio: 3 / 2;
  background: var(--rd-bg-card);
}

.rd-card:hover {
  border-color: var(--rd-border-hover);
}

.rd-card:hover .rd-card__image {
  transform: scale(1.03);
}

.rd-card--selected {
  border: 2px solid var(--rd-gold);
  box-shadow: 0 0 20px var(--rd-gold-glow), 0 0 40px rgba(200, 169, 106, 0.1);
}

.rd-card--selected:hover {
  border-color: var(--rd-gold);
}

.rd-card__image {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  max-height: none !important;
  transition: transform 0.3s ease;
}

/* Override emergency-fix.css which forces color/opacity on all spans */
.rd-wizard .rd-card__label {
  color: var(--rd-white) !important;
}
.rd-wizard .rd-card__overlay {
  z-index: 1;
}

.rd-card__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transition: background 0.3s ease;
}

.rd-card:hover .rd-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%) !important;
}

.rd-card__label {
  position: absolute !important;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-family: var(--rd-font-body);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  line-height: 1.3;
  z-index: 2 !important;
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  paint-order: normal !important;
}

.rd-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rd-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--rd-transition), transform var(--rd-transition);
  z-index: 3;
}

.rd-card--selected .rd-card__check {
  opacity: 1;
  transform: scale(1);
}

.rd-card__check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #1a1a2e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Compact Cards (no images) --- */
.rd-compact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 16px;
  max-width: 800px;
}

.rd-compact-card {
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 20px 28px;
  cursor: pointer;
  transition: border-color var(--rd-transition), box-shadow var(--rd-transition), transform var(--rd-transition);
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rd-white);
  text-align: center;
  min-width: 140px;
}

.rd-compact-card:hover {
  border-color: var(--rd-border-hover);
  transform: scale(1.03);
}

.rd-compact-card--selected {
  border: 2px solid var(--rd-gold);
  box-shadow: 0 0 20px var(--rd-gold-glow);
  color: var(--rd-gold);
}

.rd-compact-card__icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.rd-compact-card__sub {
  font-size: 0.75rem;
  color: var(--rd-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* --- Budget Cards --- */
.rd-budget-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 750px;
  margin: 0 auto 16px;
}

.rd-budget-card {
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 24px 16px;
  cursor: pointer;
  transition: border-color var(--rd-transition), box-shadow var(--rd-transition), transform var(--rd-transition);
  text-align: center;
}

.rd-budget-card:hover {
  border-color: var(--rd-gold-dim);
  transform: scale(1.03);
}

.rd-budget-card--selected {
  border: 2px solid var(--rd-gold);
  box-shadow: 0 0 20px var(--rd-gold-glow);
}

.rd-budget-card__label {
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rd-white);
  margin-bottom: 6px;
}

.rd-budget-card--selected .rd-budget-card__label {
  color: var(--rd-gold);
}

.rd-budget-card__detail {
  font-family: var(--rd-font-body);
  font-size: 0.75rem;
  color: var(--rd-muted);
}

/* --- Year Chips --- */
.rd-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px auto 16px;
  flex-wrap: wrap;
  align-items: center;
}

.rd-chips__label {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-right: 4px;
}

.rd-chip {
  background: transparent;
  border: 1px solid var(--rd-border);
  border-radius: 20px;
  padding: 8px 20px;
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rd-white);
  cursor: pointer;
  transition: all var(--rd-transition);
}

.rd-chip:hover {
  border-color: var(--rd-border-hover);
}

.rd-chip--selected {
  border-color: var(--rd-gold);
  background: rgba(200, 169, 106, 0.12);
  color: var(--rd-gold);
}

/* --- Micro-copy --- */
.rd-microcopy {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-top: 16px;
  font-style: italic;
}

/* --- Social Proof --- */
.rd-social-proof {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rd-social-proof__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd-success);
  display: inline-block;
  animation: rd-pulse 2s infinite;
}

@keyframes rd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Navigation Buttons --- */
.rd-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 32px auto 0;
  padding: 0;
}

.rd-nav--center {
  justify-content: center;
}

.rd-btn-back {
  background: transparent;
  border: 1px solid var(--rd-gold);
  color: var(--rd-gold);
  font-family: var(--rd-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--rd-radius);
  cursor: pointer;
  transition: all var(--rd-transition);
}

.rd-btn-back:hover {
  background: rgba(200, 169, 106, 0.1);
}

.rd-btn-back--hidden {
  visibility: hidden;
  pointer-events: none;
}

.rd-btn-next {
  background: var(--rd-gold);
  border: none;
  color: #1a1a2e;
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--rd-radius);
  cursor: pointer;
  transition: all var(--rd-transition);
}

.rd-btn-next:hover:not(:disabled) {
  background: #d4b87a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--rd-gold-glow);
}

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

/* --- Form Fields (Step 7, 11) --- */
.rd-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.rd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rd-form__group {
  margin-bottom: 20px;
}

.rd-form__label {
  display: block;
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rd-white);
  margin-bottom: 6px;
}

.rd-form__label--optional::after {
  content: ' (optional)';
  color: var(--rd-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.rd-form__input,
.rd-form__select,
.rd-form__textarea {
  width: 100%;
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 12px 16px;
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  color: var(--rd-white);
  transition: border-color var(--rd-transition);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.rd-form__input:focus,
.rd-form__select:focus,
.rd-form__textarea:focus {
  outline: none;
  border-color: var(--rd-gold);
  box-shadow: 0 0 0 2px var(--rd-gold-dim);
}

.rd-form__input::placeholder,
.rd-form__textarea::placeholder {
  color: #555;
}

.rd-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.rd-form__textarea {
  min-height: 100px;
  resize: vertical;
}

.rd-form__hint {
  font-size: 0.75rem;
  color: var(--rd-muted);
  margin-top: 4px;
}

.rd-form__error {
  font-size: 0.75rem;
  color: var(--rd-danger);
  margin-top: 4px;
  display: none;
}

.rd-form__group--error .rd-form__input,
.rd-form__group--error .rd-form__select {
  border-color: var(--rd-danger);
}

.rd-form__group--error .rd-form__error {
  display: block;
}

/* --- Checkbox --- */
.rd-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  color: var(--rd-muted);
  line-height: 1.4;
}

.rd-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--rd-border);
  border-radius: 4px;
  background: var(--rd-bg-card);
  cursor: pointer;
  transition: all var(--rd-transition);
  margin-top: 1px;
}

.rd-checkbox input:checked {
  background: var(--rd-gold);
  border-color: var(--rd-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l3 3 5-5' stroke='%231a1a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.rd-checkbox a {
  color: var(--rd-gold);
  text-decoration: underline;
}

/* --- Honeypot --- */
.rd-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Children Form (inline, step 6) --- */
.rd-children-form {
  max-width: 400px;
  margin: 20px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  display: none;
  text-align: left;
}

.rd-children-form--visible {
  display: block;
  animation: rd-fadeIn 300ms ease;
}

.rd-children-form__title {
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rd-white);
  margin-bottom: 12px;
}

.rd-children-form__row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.rd-children-form__row label {
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  color: var(--rd-muted);
  white-space: nowrap;
}

.rd-children-form__row select {
  flex: 1;
}

/* --- Kreuzfahrt Prefs (Step 8) --- */
.rd-kreuzfahrt-section {
  margin-bottom: 28px;
}

.rd-kreuzfahrt-section__title {
  font-family: var(--rd-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rd-white);
  margin-bottom: 16px;
  text-align: center;
}

.rd-pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.rd-pref-chip {
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: 24px;
  padding: 10px 20px;
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  color: var(--rd-white);
  cursor: pointer;
  transition: all var(--rd-transition);
  user-select: none;
}

.rd-pref-chip:hover {
  border-color: var(--rd-border-hover);
}

.rd-pref-chip--selected {
  border-color: var(--rd-gold);
  background: rgba(200, 169, 106, 0.12);
  color: var(--rd-gold);
}

/* --- Profile Result (Step 10) --- */
.rd-profile {
  max-width: 700px;
  margin: 0 auto;
}

.rd-profile__label {
  font-family: var(--rd-font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--rd-gold);
  margin-bottom: 28px;
}

.rd-profile__summary {
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 28px;
  text-align: left;
  margin-bottom: 28px;
}

.rd-profile__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--rd-font-body);
  font-size: 0.9rem;
}

.rd-profile__row:last-child {
  border-bottom: none;
}

.rd-profile__row-label {
  color: var(--rd-muted);
}

.rd-profile__row-value {
  color: var(--rd-white);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.rd-profile__testimonial {
  background: rgba(200, 169, 106, 0.06);
  border-left: 3px solid var(--rd-gold);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--rd-radius) var(--rd-radius) 0;
}

.rd-profile__testimonial-text {
  font-family: var(--rd-font-body);
  font-size: 0.9rem;
  color: var(--rd-white);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.rd-profile__testimonial-author {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-gold);
}

.rd-profile__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.rd-btn-ghost {
  background: transparent;
  border: 1px solid var(--rd-gold);
  color: var(--rd-gold);
  font-family: var(--rd-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--rd-radius);
  cursor: pointer;
  transition: all var(--rd-transition);
}

.rd-btn-ghost:hover {
  background: rgba(200, 169, 106, 0.1);
}

/* --- Confirmation Screen --- */
.rd-confirmation {
  max-width: 700px;
  margin: 0 auto;
}

.rd-confirmation__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.rd-confirmation__team {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

.rd-confirmation__team-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rd-gold);
}

.rd-confirmation__text {
  font-family: var(--rd-font-body);
  font-size: 0.95rem;
  color: var(--rd-muted);
  line-height: 1.6;
  margin: 20px 0;
}

.rd-confirmation__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rd-confirmation__feedback {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rd-confirmation__feedback-label {
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  color: var(--rd-muted);
  margin-bottom: 10px;
}

/* --- Gradient Fallback Cards --- */
.rd-card--gradient {
  background: linear-gradient(135deg, #1a2332 0%, #0d1520 100%);
}

/* --- Optional Date Fields (Step 4) --- */
.rd-optional-dates,
.rd-optional-field {
  margin-top: 24px;
  text-align: center;
}

.rd-optional-dates__label,
.rd-optional-field__label {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-bottom: 10px;
}

.rd-optional-dates .rd-form__row {
  max-width: 400px;
  margin: 0 auto;
}

.rd-form__input--small {
  max-width: 140px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

/* --- Schnellanfrage Escape Link (see bottom of file) --- */

/* --- Detail Section (Step 11) --- */
.rd-detail-section {
  margin-bottom: 28px;
  text-align: center;
}

.rd-detail-section__title {
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rd-white);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rd-compact-cards--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.rd-compact-card--small {
  min-width: auto;
  padding: 10px 18px;
  font-size: 0.82rem;
}

/* --- Stagger Animation --- */
@keyframes rd-fadeIn {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

.rd-compact-card,
.rd-budget-card,
.rd-pref-chip {
  animation: rd-fadeIn 400ms ease backwards;
}

/* rd-card: KEINE Animation — Bilder muessen sofort sichtbar sein */
.rd-card {
  opacity: 1 !important;
  animation: none !important;
}

/* --- Loading Spinner --- */
.rd-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 26, 46, 0.3);
  border-top-color: #1a1a2e;
  border-radius: 50%;
  animation: rd-spin 600ms linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* --- Submit Error --- */
.rd-submit-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--rd-radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  color: var(--rd-danger);
  display: none;
}

.rd-submit-error--visible {
  display: block;
}

/* --- Separator --- */
.rd-separator {
  width: 60px;
  height: 1px;
  background: var(--rd-gold-dim);
  margin: 24px auto;
}

/* --- WhatsApp Link --- */
.rd-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rd-muted);
  font-family: var(--rd-font-body);
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 16px;
  transition: color var(--rd-transition);
}

.rd-whatsapp-link:hover {
  color: #25D366;
}

.rd-whatsapp-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Hide sticky contact bar on wizard page --- */
.rd-wizard ~ .sticky-contact-bar,
body:has(.rd-wizard) .sticky-contact-bar {
  display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .rd-cards--8 { grid-template-columns: repeat(2, 1fr); }
  .rd-cards--7 { grid-template-columns: repeat(2, 1fr); }
  .rd-cards--5 { grid-template-columns: repeat(3, 1fr); }
  .rd-cards--10 { grid-template-columns: repeat(3, 1fr); }
  .rd-cards--6 { grid-template-columns: repeat(2, 1fr); }
  .rd-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .rd-budget-cards { grid-template-columns: repeat(2, 1fr); }
  .rd-card { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .rd-progress {
    top: 60px;
  }

  .rd-step {
    padding: 120px 12px 90px;
    justify-content: flex-start;
  }

  .rd-cards--8,
  .rd-cards--7,
  .rd-cards--5,
  .rd-cards--10,
  .rd-cards--6,
  .rd-cards--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .rd-budget-cards {
    grid-template-columns: 1fr;
  }

  .rd-card {
    aspect-ratio: 3 / 2;
    max-height: 140px;
  }

  .rd-compact-card {
    min-width: 120px;
    padding: 16px 20px;
    font-size: 0.85rem;
  }

  .rd-progress__phases {
    gap: 16px;
    padding: 8px 12px 6px;
  }

  .rd-progress__phase {
    font-size: 0.6rem;
  }

  .rd-nav {
    padding: 0 8px;
  }

  .rd-btn-back,
  .rd-btn-next {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .rd-profile__summary {
    padding: 20px 16px;
  }

  .rd-profile__row {
    flex-direction: column;
    gap: 4px;
  }

  .rd-profile__row-value {
    text-align: left;
    max-width: 100%;
  }

  .rd-confirmation__team-photo {
    width: 52px;
    height: 52px;
  }

  .rd-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .rd-progress {
    top: 56px;
  }

  .rd-cards--8,
  .rd-cards--7,
  .rd-cards--5,
  .rd-cards--10 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rd-card {
    max-height: 110px;
  }

  .rd-card__label {
    font-size: 0.75rem;
    bottom: 8px;
    left: 8px;
  }
}

/* --- Sublabel on Reiseart Cards --- */
.rd-card__sublabel {
  position: absolute;
  bottom: 30px;
  left: 12px;
  right: 12px;
  font-family: var(--rd-font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  .rd-card__sublabel {
    display: none;
  }
}

/* --- Micro Copy --- */
.rd-micro-copy {
  font-family: var(--rd-font-body);
  font-size: 0.8rem;
  color: var(--rd-muted);
  margin-top: 16px;
  text-align: center;
}

.rd-micro-copy a {
  color: var(--rd-gold);
  text-decoration: none;
}

.rd-micro-copy a:hover {
  text-decoration: underline;
}

/* --- Inline Form (Reisende/Mietwagen) --- */
.rd-inline-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 24px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* --- Escape Link (positioned below wizard) --- */
.rd-escape {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  text-align: center;
}

.rd-escape a {
  font-family: var(--rd-font-body);
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  transition: color var(--rd-transition);
}

.rd-escape a:hover {
  color: var(--rd-gold);
}

/* --- Date Fields --- */
.rd-date-fields .rd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .rd-date-fields .rd-form__row {
    grid-template-columns: 1fr;
  }
}
