/* =============================================================
   Widerruf – elektronische Widerrufsfunktion (§ 356a BGB)
   Nutzt die globalen :root-Variablen aus style.css.
   ============================================================= */

.wr-section {
  background: var(--warm-white);
  padding: clamp(40px, 6vw, 80px) 0;
}

.wr-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Intro ─────────────────────────────────────────────── */
.wr-intro {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.wr-intro__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}

.wr-intro h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 16px;
}

.wr-intro p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 auto;
  max-width: 620px;
}

/* ── Card ──────────────────────────────────────────────── */
.wr-card {
  background: #fff;
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
}

/* ── Legal / Widerrufsbelehrung ────────────────────────── */
.wr-legal {
  background: var(--warm-grey);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.wr-legal h2 {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 8px;
}

.wr-legal p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 10px;
}

.wr-legal p:last-child { margin-bottom: 0; }

/* ── Fehler-Zusammenfassung ────────────────────────────── */
.wr-alert {
  background: var(--red-light);
  border: 1px solid var(--red-mid);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.wr-alert p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.wr-alert ul {
  margin: 0;
  padding-left: 20px;
}

.wr-alert li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Formular ──────────────────────────────────────────── */
.wr-form { margin: 0; }

.wr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wr-field {
  margin-bottom: 20px;
}

.wr-field--full { grid-column: 1 / -1; }

.wr-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.wr-label .wr-req { color: var(--red); }

.wr-optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-light);
}

.wr-input,
.wr-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--warm-white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wr-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.wr-input:focus,
.wr-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 4, 24, 0.12);
}

.wr-input--error,
.wr-textarea--error {
  border-color: var(--red);
  background: var(--red-light);
}

.wr-error {
  display: block;
  font-size: 13.5px;
  color: var(--red);
  margin-top: 6px;
}

.wr-help {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
  margin-top: 6px;
}

/* ── Checkbox ──────────────────────────────────────────── */
.wr-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--warm-grey);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 4px 0 24px;
}

.wr-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--red);
  cursor: pointer;
}

.wr-check label {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-mid);
  cursor: pointer;
}

.wr-check--error {
  border-color: var(--red);
  background: var(--red-light);
}

/* ── Submit ────────────────────────────────────────────── */
.wr-actions {
  margin-top: 8px;
}

.wr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wr-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(228, 4, 24, 0.35);
}

.wr-submit:active { transform: translateY(0); }

.wr-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 16px 0 0;
  text-align: center;
}

.wr-note a { color: var(--red); }

/* ── Bestätigungsseite ─────────────────────────────────── */
.wr-success {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.wr-success__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wr-success__icon svg {
  width: 38px;
  height: 38px;
  stroke: var(--green);
}

.wr-success h1 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text);
  margin: 0 0 16px;
}

.wr-success p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 16px;
}

.wr-success__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 30px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wr-success__home:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(228, 4, 24, 0.35);
}

/* ── Responsiv ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .wr-grid { grid-template-columns: 1fr; gap: 0; }
}
