/* ============================================================
   Widerrufsrecht-Modul – Stylesheet
   § 356a BGB / EU-Richtlinie 2023/2673
   ============================================================ */

/* ── Footer-Button (Pflicht: gut sichtbar, immer erreichbar) ── */
.wdr-footer-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: #f8f8f8;
  border-top: 2px solid #d9534f;
}

.wdr-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #d9534f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s ease;
  border: 2px solid transparent;
}

.wdr-footer-btn:hover,
.wdr-footer-btn:focus {
  background: #c9302c;
  outline: 3px solid #ff9999;
  outline-offset: 2px;
}

.wdr-footer-btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── Allgemeiner Container ── */
.wdr-container {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

/* ── Informationsbox ── */
.wdr-info-box {
  background: #f0f7ff;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.wdr-info-box h2,
.wdr-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  color: #003d80;
}

.wdr-legal-note {
  margin-bottom: 0;
  color: #555;
}

/* ── Schritt-Indikator ── */
.wdr-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.wdr-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  font-weight: 700;
  font-size: 15px;
}

.wdr-step.wdr-active {
  background: #d9534f;
  color: #fff;
}

.wdr-step.wdr-done {
  background: #5cb85c;
  color: #fff;
}

.wdr-step-label.wdr-active {
  font-weight: 700;
  color: #d9534f;
}

.wdr-step-arrow {
  color: #aaa;
  font-size: 18px;
}

/* ── Haupt-CTA (Stufe 1) ── */
.wdr-step-1-cta {
  text-align: center;
  padding: 30px 0;
}

.wdr-main-btn {
  font-size: 18px !important;
  padding: 14px 36px !important;
  background: #d9534f !important;
  border-color: #d43f3a !important;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.2s;
}

.wdr-main-btn:hover,
.wdr-main-btn:focus {
  background: #c9302c !important;
}

.wdr-btn-hint {
  color: #888;
  margin-top: 8px;
}

/* ── Formular ── */
.wdr-form-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wdr-mandatory-note {
  color: #666;
  margin-bottom: 20px;
  font-size: 13px;
}

.wdr-required-star {
  color: #d9534f;
  font-weight: 700;
}

.wdr-label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.wdr-fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wdr-fieldset-legend {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  padding: 0 6px;
  width: auto;
  border: none;
  margin-bottom: 0;
}

/* ── Hinweisbox vor Submit ── */
.wdr-submit-notice {
  margin-top: 24px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── Form-Buttons ── */
.wdr-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.wdr-confirm-btn {
  font-size: 16px !important;
  padding: 12px 30px !important;
}

.wdr-cancel-btn {
  font-size: 14px !important;
}

/* ── Erfolgsseite ── */
.wdr-success {
  text-align: center;
  padding-top: 20px;
}

.wdr-success-icon {
  font-size: 64px;
  color: #5cb85c;
  line-height: 1;
  margin-bottom: 12px;
}

.wdr-success-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3d7a3d;
  margin-bottom: 20px;
}

.wdr-success-box {
  background: #f6fff6;
  border: 1px solid #b2dfb2;
  border-radius: 6px;
  padding: 20px 28px;
  display: inline-block;
  text-align: left;
  min-width: 320px;
  max-width: 560px;
  margin-bottom: 24px;
}

.wdr-ref-id {
  color: #0066cc;
  font-size: 1.1em;
}

.wdr-mail-notice {
  font-size: 14px;
  margin-bottom: 0;
  margin-top: 12px;
}

.wdr-icon-mail {
  font-size: 16px;
  margin-right: 4px;
}

/* ── Nächste Schritte ── */
.wdr-next-steps {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 24px;
}

.wdr-next-steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.wdr-next-steps ol {
  padding-left: 20px;
}

.wdr-next-steps li {
  margin-bottom: 8px;
}

.wdr-return-address {
  background: #f5f5f5;
  border-left: 3px solid #ccc;
  padding: 10px 16px;
  margin-top: 16px;
  font-size: 14px;
  border-radius: 3px;
}

.wdr-back-link {
  margin-top: 16px;
}

/* ── Bestellbestätigung-Hook ── */
.wdr-order-confirmation-box {
  background: #fffbe6;
  border: 1px solid #ffd54f;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 16px 0;
}

.wdr-oc-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #7a5800;
}

.wdr-oc-text {
  margin-bottom: 10px;
  font-size: 14px;
}

.wdr-oc-btn {
  font-size: 13px;
}

/* ── Mein-Konto-Link ── */
.wdr-myaccount-link {
  margin: 8px 0;
}

.wdr-account-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333 !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.15s;
}

.wdr-account-btn:hover {
  background: #e9e9e9;
}

/* ── Admin ── */
.wdr-admin-status-row {
  font-size: 14px;
}

.wdr-detail-table td:first-child {
  width: 160px;
  background: #fafafa;
}

.wdr-th-section {
  background: #f0f0f0 !important;
  font-weight: 700;
  font-size: 13px;
}

.wdr-bemerkung-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 14px;
  white-space: pre-wrap;
}

.wdr-tech-data {
  margin-top: 16px;
  padding: 8px 0;
  border-top: 1px solid #eee;
}

.wdr-status-form {
  margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .wdr-footer-btn-label {
    font-size: 13px;
  }

  .wdr-form-actions {
    flex-direction: column;
  }

  .wdr-form-actions .btn {
    width: 100%;
    text-align: center;
  }

  .wdr-success-box {
    min-width: unset;
    width: 100%;
  }
}
