/* =====================================================
   Widerruf-Modul – Styles
   ===================================================== */

/* --- Footer-Button --- */

.widerruf-btn-footer {
  display: inline;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  padding-left: 0;
  margin-left: 0;
}

.widerruf-btn-footer:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* --- Form page --- */
.widerruf-container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.widerruf-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.widerruf-intro {
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
  border-left: 3px solid #c0392b;
  padding-left: 1rem;
  background: #fdf6f6;
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
}

/* --- Error box --- */
.widerruf-error-box {
  background: #fdecea;
  border: 1px solid #e74c3c;
  color: #c0392b;
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- Success box --- */
.widerruf-success-box {
  background: #eafaf1;
  border: 1px solid #27ae60;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}

.widerruf-success-icon {
  font-size: 3rem;
  color: #27ae60;
  margin-bottom: 0.5rem;
}

.widerruf-success-box h2 {
  margin-bottom: 1rem;
  color: #1e8449;
}

.widerruf-success-box p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.widerruf-back-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 1.4rem;
  background: #27ae60;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.widerruf-back-btn:hover {
  background: #1e8449;
  color: #fff;
}

/* --- Form fields --- */
.widerruf-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widerruf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.widerruf-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.widerruf-field input[type="text"],
.widerruf-field input[type="email"],
.widerruf-field textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.widerruf-field input:focus,
.widerruf-field textarea:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.12);
}

.widerruf-field small {
  color: #888;
  font-size: 0.82rem;
}

.req {
  color: #c0392b;
}

.optional {
  color: #999;
  font-weight: 400;
  font-size: 0.85em;
}

/* --- Checkbox --- */
.widerruf-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.widerruf-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.widerruf-hint {
  color: #888;
  font-size: 0.82rem;
}

/* --- Submit button --- */
.widerruf-submit-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.widerruf-submit-btn:hover {
  background: #96281b;
}

@media (max-width: 480px) {
  .widerruf-submit-btn {
    width: 100%;
    text-align: center;
  }
}
