/* Wichtel-Auslosung: cream paper, sage and a little terracotta, matching the other helpers. */
.wichtel-draw-page { --wd-cream:#faf5ee; --wd-sage:#7e9679; --wd-sage-soft:#f1f1e4; --wd-terracotta:#b4552d; --wd-terracotta-ink:#7a3a1f; --wd-warm-line:#d4c7a9; }
.wd-sr { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.wd-breadcrumb { display:flex; flex-wrap:wrap; gap:4px 10px; padding:18px 0 0; font-size:13px; color:var(--tool-muted); }
.wd-breadcrumb a { color:var(--tool-green); text-underline-offset:4px; }

.wd-hero { position:relative; isolation:isolate; display:flex; align-items:center; min-height:520px; margin:18px 0 26px; padding:48px 44px; border-radius:18px; overflow:hidden; background:var(--wd-cream); }
.wd-hero .tool-hero-image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:68% center; }
.wd-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#faf5ee 0%,#faf5eef7 34%,#faf5eee0 50%,#faf5ee55 66%,transparent 82%); }
.wd-hero-copy { width:min(560px,58%); }
.wd-hero h1 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(34px,4.2vw,54px); line-height:1.08; letter-spacing:-.02em; margin:0 0 18px; color:var(--tool-ink); }
.wd-nowrap { white-space:nowrap; }
.wd-lead { font-size:17px; line-height:1.65; color:#4a4f45; margin:0 0 22px; }
.wd-hero .tool-image-credit { position:absolute; right:12px; bottom:12px; padding:4px 8px; border-radius:4px; background:#fff9ecee; color:#433a30; font-size:11px; }

.wd-answer { margin:24px 0; padding:24px 26px; border:1px solid var(--tool-line); border-left:4px solid var(--wd-sage); border-radius:14px; background:var(--tool-paper); }
.wd-answer h2 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(24px,2.6vw,30px); line-height:1.25; margin:0 0 12px; }
.wd-answer p:last-child { margin:0; font-size:16px; line-height:1.7; max-width:820px; }

.wd-tool h2 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(28px,3vw,36px); }
.wd-honest { margin:8px 0 24px; padding:18px 20px; border:1px solid #e2b9a0; border-left:4px solid var(--wd-terracotta); border-radius:12px; background:#fbf0e6; }
.wd-honest h3 { margin:0 0 8px; font-size:18px; color:var(--wd-terracotta-ink); }
.wd-honest p { margin:0 0 8px; font-size:15px; }
.wd-honest p:last-child { margin:0; }
.wd-noscript,.wd-switch { padding:14px 18px; border-radius:10px; background:var(--wd-sage-soft); border:1px solid #c9cfba; }
.wd-noscript h3 { margin:0 0 6px; font-size:18px; }
.wd-noscript p,.wd-switch { margin:0; font-size:15px; line-height:1.6; }
.wd-switch a { color:var(--tool-green); font-weight:600; }
.wd-count { font-weight:600!important; color:#4d5a47!important; }
.wd-tool textarea#wd-names { min-height:190px; }

.wd-exclusions { margin:22px 0; padding:18px 20px 20px; border:1px solid var(--tool-line); border-radius:12px; min-width:0; }
.wd-exclusions legend { padding:0 6px; font-weight:700; font-size:15px; }
.wd-exclusions>p { margin:0 0 14px; }
.wd-ex-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:12px; align-items:end; }
.wd-ex-list { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; padding:0; list-style:none; }
.wd-ex-list li { display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px 8px; max-width:100%; padding:2px 4px 2px 14px; border:1px solid #bdc5b5; border-radius:22px; background:#f3f4ea; font-size:14px; }
.wd-ex-names { overflow-wrap:anywhere; }
.wd-ex-list li.is-stale { border-color:#d7a088; background:#fff0e8; }
.wd-ex-stale { color:#823c2b; font-size:12px; }
#wd-ex-empty { margin:12px 0 0; }

.wd-remember { margin:20px 0 6px; }
.wd-check { display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; cursor:pointer; }
.wd-remember p { margin:6px 0 0 29px; }
.wd-remember .tool-button { margin:4px 0 0 23px; }
.wd-errors { margin:0; color:#823c2b; }
.wd-errors.is-visible { margin:16px 0; padding:14px 18px; border:1px solid #d7a088; border-radius:10px; background:#fff0e8; }
.wd-errors-title { margin:0 0 6px; font-weight:700; }
.wd-errors ul { margin:0; padding-left:20px; line-height:1.6; }
.wd-errors li+li { margin-top:6px; }
.wd-form-actions,.wd-tool form>.tool-row { margin-top:18px; }
.wd-submit { min-height:52px; padding:12px 28px; font-size:16px; }
#wd-redraw-note { margin:8px 0 0; }

.wd-results { margin-top:24px; padding-top:22px; border-top:1px solid var(--tool-line); }
.wd-results h3 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(26px,3vw,32px); margin:0 0 8px; }
.wd-results-warning { margin:14px 0; padding:12px 16px; border-left:3px solid #a6b190; background:var(--wd-sage-soft); font-size:14px; line-height:1.6; }
.wd-people { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; padding:0; list-style:none; }
.wd-person { min-width:0; padding:16px; border:1px solid var(--tool-line); border-radius:14px; background:#fff; }
.wd-person.is-sent { border-color:#637e51; box-shadow:inset 4px 0 #637e51; }
.wd-person-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; min-width:0; }
.wd-person-num { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--tool-green); color:#fff; font-size:13px; font-weight:700; }
.wd-person-name { min-width:0; font-size:17px; overflow-wrap:anywhere; }
.wd-person-mark { margin-left:auto; flex:none; color:#4d6b3c; font-size:12px; font-weight:600; }
.wd-link-field { display:block; }
.wichtel-draw-page .wd-link-field input { padding:8px 10px; font-size:13px; color:#55594f; background:#fbfaf5; }
.wd-person-actions { margin-top:10px; gap:8px; }
.wd-person-actions .tool-button { flex:1 1 auto; }
.wd-person-actions .tool-button.text { flex:0 1 auto; }
#wd-all-box { margin-top:14px; }

.wd-ticket { margin:20px 0 30px; padding:34px 28px; text-align:center; border-color:var(--wd-warm-line); background:linear-gradient(180deg,#fffaf0 0%,#fffdf7 100%); }
.wd-ticket h2 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(28px,4vw,38px); margin:0 0 14px; }
#wd-ticket-closed>p { max-width:560px; margin-inline:auto; }
.wd-ticket strong { overflow-wrap:anywhere; }
.wd-reveal { min-height:64px; margin:10px 0 6px; padding:16px 30px; border-color:var(--wd-terracotta); border-radius:999px; background:var(--wd-terracotta); font-size:18px; }
.wd-ticket-label { margin:0; color:#78553a; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.wd-ticket-name { margin:6px 0 18px; font-family:var(--gg-serif,Georgia,serif); font-size:clamp(38px,8vw,64px); line-height:1.1; color:var(--tool-green); overflow-wrap:anywhere; }
.wd-ticket-name:focus,#wd-ticket-title:focus,#wd-invalid-title:focus,#wd-results-title:focus,.wd-errors:focus { outline:none; }
.wd-ticket-name:focus-visible { outline:3px solid #a15a37; outline-offset:6px; }
.wd-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 18px; max-width:520px; margin:0 auto 22px; padding:16px 20px; border-radius:12px; background:#fff; border:1px solid var(--tool-line); text-align:left; }
.wd-facts dt { font-weight:700; }
.wd-facts dd { margin:0; overflow-wrap:anywhere; }
.wd-note-text { white-space:pre-line; }
.wd-next { margin-top:26px; padding-top:20px; border-top:1px dashed var(--wd-warm-line); text-align:left; }
.wd-next h3 { margin:0 0 8px; font-size:18px; }
.wd-link-list { margin:0 0 12px; padding-left:20px; line-height:1.6; }
.wd-link-list li { margin:6px 0; }
.wd-link-list a,.wd-next a { color:var(--tool-green); text-underline-offset:4px; }
.wd-invalid { border-color:#d7a088; background:#fff6f0; }
.wd-invalid h2 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; }

.wd-section { margin:46px 0; }
.wd-section>h2 { font-family:var(--gg-serif,Georgia,serif); font-weight:400; font-size:clamp(28px,3.4vw,38px); line-height:1.2; margin:0 0 20px; }
.wd-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0; padding:0; list-style:none; counter-reset:wd-step; }
.wd-steps li { counter-increment:wd-step; min-width:0; padding:22px; border:1px solid var(--tool-line); border-radius:16px; background:var(--tool-paper); }
.wd-steps li::before { content:counter(wd-step); display:grid; place-items:center; width:40px; height:40px; margin-bottom:12px; border-radius:50%; background:#f0d9b2; color:var(--wd-terracotta-ink); font-family:var(--gg-serif,Georgia,serif); font-size:21px; }
.wd-steps h3,.wd-tips h3 { margin:0 0 8px; font-size:18px; color:var(--tool-green); }
.wd-steps p,.wd-tips p { margin:0; line-height:1.65; }
.wd-tips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.wd-tips article { min-width:0; padding:20px 22px; border:1px solid var(--tool-line); border-radius:14px; background:var(--tool-paper); }
.wd-tips a,.wd-faq a { color:var(--tool-green); text-underline-offset:4px; }
.wd-faq { max-width:820px; border-top:1px solid var(--tool-line); }
.wd-faq-item { padding:18px 0; border-bottom:1px solid var(--tool-line); }
.wd-faq-item h3 { margin:0 0 8px; font-size:18px; line-height:1.4; }
.wd-faq-item p { margin:0; line-height:1.7; }

@media (max-width:900px) { .wd-steps { grid-template-columns:1fr; } .wd-hero-copy { width:min(560px,66%); } .wd-hero::before { background:linear-gradient(90deg,#faf5ee 0%,#faf5eef7 44%,#faf5eedd 60%,#faf5ee44 80%,transparent); } }
@media (max-width:760px) {
  .wd-hero { flex-direction:column; align-items:stretch; gap:18px; min-height:0; padding:0; border-radius:0; overflow:visible; background:transparent; }
  .wd-hero::before { display:none; }
  .wd-hero .tool-hero-image { position:static; order:2; z-index:auto; height:auto; aspect-ratio:16/9; border-radius:14px; }
  .wd-hero-copy { width:100%; }
  .wd-hero h1 { font-size:clamp(30px,8vw,40px); }
  .wd-hero .tool-image-credit { right:8px; bottom:8px; font-size:10px; }
  .wd-people,.wd-tips { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .wd-ex-row { grid-template-columns:1fr; }
  .wd-ex-row .tool-button,.wd-submit { width:100%; }
  .wd-exclusions { padding:14px 14px 16px; }
  .wd-answer { padding:20px 18px; }
  .wd-honest { padding:16px; }
  .wd-ticket { padding:26px 16px; }
  .wd-reveal { width:100%; padding:14px 18px; font-size:17px; }
  .wd-facts { grid-template-columns:1fr; gap:2px; padding:14px 16px; }
  .wd-facts dd+dt { margin-top:8px; }
  .wd-person-actions .tool-button { flex:1 1 100%; }
  .wd-remember p { margin-left:0; }
  .wd-remember .tool-button { margin-left:-6px; }
}
