/* withdraw.css — Elektronische Widerrufsfunktion (§ 356a BGB)   [O38-B8b]   Praefix .udw-, eigenstaendig, mobile first */
.udw-root {
  --udw-bg: #ffffff; --udw-fg: #1f2530; --udw-muted: #4b5563; --udw-line: #d6dbe3; --udw-accent: #0b1220; --udw-accent-fg: #ffffff;
  --udw-focus: #1a56db; --udw-danger: #b42318; --udw-ok: #067647; --udw-warn-bg: #fff3cd;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--udw-fg); font-size: 16px; line-height: 1.5; box-sizing: border-box;
}
.udw-root *, .udw-root *::before, .udw-root *::after { box-sizing: inherit; }
.udw-card { background: var(--udw-bg); border: 1px solid var(--udw-line); border-radius: 14px; padding: 20px 18px; max-width: 560px; margin: 0 auto; }
.udw-draft { background: var(--udw-warn-bg); border: 1px solid #e0c36a; border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 0 0 14px; }
.udw-title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; color: var(--udw-accent); }
.udw-lead { margin: 0 0 16px; color: var(--udw-muted); font-size: 15px; }
.udw-field { margin: 0 0 14px; }
.udw-field label, .udw-field legend { display: block; font-weight: 600; margin: 0 0 4px; font-size: 15px; padding: 0; }
.udw-field input[type=text], .udw-field input[type=email], .udw-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: inherit; background: transparent; border: 1.5px solid #8a94a6; border-radius: 10px;
}
.udw-field textarea { min-height: 90px; resize: vertical; }
.udw-hint { font-size: 13px; color: var(--udw-muted); margin: 3px 0 0; }
.udw-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--udw-line); border-radius: 10px; margin: 0 0 8px; cursor: pointer; }
.udw-radio input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--udw-accent); flex: 0 0 auto; }
.udw-radio small { display: block; color: var(--udw-muted); }
.udw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.udw-error { color: var(--udw-danger); font-weight: 600; margin: 0 0 10px; }
.udw-error:empty { display: none; }
.udw-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.udw-btn { min-height: 48px; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--udw-accent); font: inherit; font-weight: 700; cursor: pointer; background: var(--udw-accent); color: var(--udw-accent-fg); width: 100%; }
.udw-btn.udw-secondary { background: transparent; color: var(--udw-accent); }
.udw-btn[disabled] { opacity: .5; cursor: not-allowed; }
.udw-summary { border: 1px solid var(--udw-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.udw-summary dt { color: var(--udw-muted); font-size: 14px; margin-top: 8px; }
.udw-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.udw-done { color: var(--udw-ok); font-weight: 700; }
.udw-entry { display: inline-block; min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 700; border: 2px solid currentColor; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.udw-root :focus-visible, .udw-entry:focus-visible { outline: 3px solid var(--udw-focus); outline-offset: 2px; }
.udw-overlay { position: fixed; inset: 0; z-index: 2147483000; background: rgba(11, 18, 32, .62); display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; }
.udw-overlay .udw-card { border-radius: 16px 16px 0 0; width: 100%; max-width: none; max-height: 100%; overflow-y: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) {
  .udw-overlay { align-items: center; padding: 24px; }
  .udw-overlay .udw-card { max-width: 560px; border-radius: 16px; }
  .udw-actions { flex-direction: row-reverse; } .udw-btn { width: auto; flex: 1 1 0; }
}
@media (prefers-reduced-motion: no-preference) { .udw-overlay .udw-card { animation: udw-in .18s ease-out; } }
@keyframes udw-in { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
