/* =============================================================
   ANMELDEN PAGE — Trigger cards
   ============================================================= */

.anmelden-page {
  padding-bottom: 80px;
}

.anmelden-hero {
  text-align: center;
}

.anmelden-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.anmelden-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted, #666);
  max-width: 560px;
  margin: 0 auto;
}

.anmelden-trigger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.anmelden-trigger-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-md, 12px);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  justify-content: space-between;
}

.anmelden-trigger-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.trigger-card-icon {
  font-size: 2.5rem;
  line-height: 1;
  max-width: 70px;
}

.anmelden-trigger-card h2 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}



/* =============================================================
   WIZARD OVERLAY
   ============================================================= */

.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wizard-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.wizard-modal {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-md, 16px);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px 40px;
  position: relative;
  box-shadow: 0 16px 60px rgba(0,0,0,0.2);

  /* Slide up on open */
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.wizard-overlay.is-open .wizard-modal {
  transform: translateY(0);
}


/* =============================================================
   WIZARD HEADER
   ============================================================= */

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

.wizard-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary, #2a6e3f);
}

.wizard-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted, #888);
  padding: 0 4px;
  transition: color 0.15s;
}

.wizard-close:hover {
  color: var(--color-text, #111);
}


/* =============================================================
   STEP DOTS
   ============================================================= */

.wizard-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border, #ddd);
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.dot.active {
  background: var(--color-primary, #2a6e3f);
  transform: scale(1.25);
}

.dot.done {
  background: var(--color-accent);
}

.wizard-step-title { 
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  min-height: 1.8em;
  color: var(--color-primary);
}

.wpcf7-spinner {
  display: none !important;
}

.wpcf7 .wpcf7-response-output {
  display: none !important;
}


/* =============================================================
   WIZARD FORM — hide the whole CF7 form,
   show only the active .wizard-step div
   ============================================================= */

/* Hide CF7's default wrapper structure */
.wizard-form-wrap .wpcf7 {
  /* keep normal */
}

/* All step containers hidden by default */
.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
  animation: stepFadeIn 0.2s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Fields inside steps inherit global styles */
.wizard-step .kontaktperson-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step input[type="url"],
.wizard-step input[type="number"],
.wizard-step textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.wizard-step input:focus,
.wizard-step textarea:focus {
  outline: none;
  border-color: var(--color-primary, #2a6e3f);
}

/* Radio buttons */
.wizard-step .wpcf7-radio .wpcf7-list-item {
  display: block;
  margin-bottom: 10px;
}

.wizard-step .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 8px);
  transition: border-color 0.15s, background 0.15s;
}

.wizard-step .wpcf7-radio .wpcf7-list-item label:hover {
  border-color: var(--color-primary, #2a6e3f);
  background: rgba(42, 110, 63, 0.04);
}

.wizard-step .wpcf7-radio input[type="radio"]:checked + span,
.wizard-step .wpcf7-radio input[type="radio"]:checked ~ span {
  color: var(--color-primary, #2a6e3f);
  font-weight: 600;
}

/* Checkbox */
.wizard-step .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

/* Produkte dynamic rows */
.produkt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.produkt-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-main);
  font-size: 0.9rem;
  box-sizing: border-box;
}

#add-produkt {
  background: none;
  border: 1px dashed var(--color-primary, #2a6e3f);
  color: var(--color-primary, #2a6e3f);
  border-radius: var(--radius-sm, 8px);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 4px;
  transition: background 0.15s;
}

#add-produkt:hover {
  background: rgba(42, 110, 63, 0.06);
}

/* Section title inside step */
.wizard-step .form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #888);
  margin-bottom: 16px;
}

.wizard-step .form-section-desc {
  font-size: 0.9rem;
  color: var(--color-muted, #666);
  margin-bottom: 12px;
}


/* =============================================================
   WIZARD NAV BUTTONS
   ============================================================= */

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border, #eee);
}

.wizard-nav .btn--ghost {
  background: none;
  border: 1px solid var(--color-border, #ccc);
  color: var(--color-text, #333);
  padding: 10px 24px;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.wizard-nav .btn--ghost:hover {
  border-color: var(--color-primary, #2a6e3f);
}

.wizard-nav .btn--ghost[style*="hidden"],
.wizard-nav .btn--ghost.hidden {
  visibility: hidden;
}

/* Hide CF7's own submit — we trigger it programmatically */
.wizard-form-wrap .wpcf7-submit {
  display: none !important;
}

/* CF7 validation errors */
.wizard-step .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.wizard-step .wpcf7-response-output {
  margin-top: 12px;
  font-size: 0.9rem;
}


/* =============================================================
   SUCCESS STATE
   ============================================================= */

.wizard-success {
  text-align: center;
  padding: 20px 0 10px;
}

.wizard-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.wizard-success h3 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.wizard-success p {
  color: var(--color-muted, #666);
  font-size: 0.95rem;
}


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

@media (max-width: 600px) {
  .anmelden-trigger-grid {
    grid-template-columns: 1fr;
  }

  .wizard-modal {
    padding: 28px 24px 32px;
  }

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