/* HdKD — Anfrage drawer (4DD). Full-height right side panel; 3-step wizard
   wired to Kazim's own-mode booking backend. Colour-led room cards (no photos). */

#hdkd-drawer [hidden], #hdkd-anm-drawer [hidden] { display: none !important; }

.hdkd-drawer-overlay {
  position: fixed; inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  z-index: 9998; opacity: 0; visibility: hidden;
  transition: opacity 250ms ease-in-out, visibility 0s linear 250ms;
}
.hdkd-drawer-overlay--open { opacity: 1; visibility: visible; transition: opacity 250ms ease-in-out, visibility 0s; }

.hdkd-drawer {
  /* Full-height right-side drawer. */
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  width: min(980px, 100vw); max-width: 100vw; max-height: 100vh;
  background: #fff; z-index: 9999; border-radius: 0;
  box-shadow: -24px 0 70px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateX(48px); visibility: hidden;
  transition: opacity 250ms ease-in-out, transform 250ms cubic-bezier(0.25, 0.45, 0.4, 1), visibility 0s linear 250ms;
}
.hdkd-drawer--open { opacity: 1; transform: none; visibility: visible; transition: opacity 250ms ease-in-out, transform 250ms cubic-bezier(0.25, 0.45, 0.4, 1), visibility 0s; }
/* clear the WP admin bar for logged-in users (public site has none) */
.admin-bar .hdkd-drawer { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .hdkd-drawer { top: 46px; } }

/* narrow variant — the event-registration drawer (short single-column form) */
.hdkd-drawer--narrow { width: min(500px, 100vw); }

.hdkd-drawer__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px 30px 18px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hdkd-drawer__eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #1C8D82; margin-bottom: 6px; }
.hdkd-drawer__title { font-family: inherit; font-weight: 500; font-size: 24px; letter-spacing: -0.025em; margin: 0; line-height: 1.2; color: #2A2520; }

.hdkd-drawer__close {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; background: transparent;
  font-size: 16px; color: inherit; cursor: pointer; flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease;
}
.hdkd-drawer__close:hover { background: #f5f5f5; border-color: rgba(0,0,0,0.2); }

.hdkd-drawer__context:not(:empty) { margin: 16px 30px 0; padding: 12px 16px; background: #f5f5f5; border-radius: 8px; font-size: 14px; color: #666; }

.hdkd-drawer__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 30px; }
.hdkd-drawer__form { display: flex; flex-direction: column; gap: 18px; }
/* each step gets its own vertical rhythm so rows never touch (Name ↔ Telefon) */
.hdkd-dw__step { display: flex; flex-direction: column; gap: 16px; }

.hdkd-drawer__footer { padding: 16px 30px; border-top: 1px solid rgba(0,0,0,0.06); background: #fff; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.hdkd-drawer__dsgvo { font-size: 12px; color: #999; line-height: 1.5; margin: 0; }
.hdkd-drawer__dsgvo a { color: #1C8D82; text-decoration: underline; }

/* ---- fields ---- */
.hdkd-drawer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hdkd-drawer__field { display: flex; flex-direction: column; gap: 7px; }
/* only the field's OWN label (direct child) — must not bleed onto the
   chip <label>s nested in .hdkd-dw__chips (that killed their pill styling) */
.hdkd-drawer__field > label {
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: -0.01em !important;
  text-transform: none !important; color: #666 !important; margin: 0 !important; padding: 0 !important; line-height: 1.2 !important;
}
.hdkd-drawer__field input,
.hdkd-drawer__field select,
.hdkd-drawer__field textarea {
  font-family: inherit; font-size: 15px !important; padding: 10px 14px !important;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: #fff; color: #2A2520;
  transition: border-color 200ms ease, box-shadow 200ms ease; width: 100%; margin: 0 !important;
  line-height: 1.3 !important; box-shadow: none !important;
}
.hdkd-drawer__field input:focus,
.hdkd-drawer__field select:focus,
.hdkd-drawer__field textarea:focus { outline: none; border-color: #1C8D82; }
.hdkd-drawer__field textarea { resize: vertical; min-height: 78px; }
.hdkd-drawer__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
/* invalid flash on required fields */
.hdkd-dw--invalid { border-color: #d1544c !important; box-shadow: 0 0 0 3px rgba(209,84,76,0.14) !important; }
.hdkd-dw__note { font-size: 12px; color: #8a857c; line-height: 1.4; }
.hdkd-dw__opt { font-weight: 400; color: #a59b8c; }

/* honeypot — visually gone */
.hdkd-dw__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Organisation combobox (type-to-filter, like the calendar search) ---- */
.hdkd-dw__combo { position: relative; }
.hdkd-dw__combo-in { position: relative; display: flex; align-items: center; }
.hdkd-dw__combo-in svg { position: absolute; left: 13px; width: 16px; height: 16px; color: rgba(42,37,32,0.4); pointer-events: none; }
.hdkd-dw__combo-in input { padding-left: 38px !important; }
.hdkd-dw__combo-list {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 6;
  margin: 0 !important; padding: 6px !important; list-style: none;
  background: #fff; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px;
  box-shadow: 0 16px 38px rgba(20,18,15,0.14); max-height: 244px; overflow-y: auto;
}
.hdkd-dw__combo-opt {
  margin: 0 !important; padding: 9px 11px; list-style: none;
  border-radius: 7px; font-size: 14px; color: #2A2520; cursor: pointer; line-height: 1.3;
}
.hdkd-dw__combo-opt::before { content: none !important; }
.hdkd-dw__combo-opt:hover, .hdkd-dw__combo-opt.is-active { background: #f0faf8; color: #136B62; }

/* ---- footer buttons ---- */
.hdkd-drawer__nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hdkd-drawer__step { font-size: 12px; color: #999; }
.hdkd-drawer__navbtns { display: flex; gap: 10px; margin-left: auto; }
.hdkd-drawer__back, .hdkd-drawer__next, .hdkd-drawer__submit {
  font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  border-radius: 9999px; padding: 13px 22px; border: 0; transition: background 200ms ease;
}
.hdkd-drawer__back { background: transparent; color: #2A2520; border: 1px solid rgba(0,0,0,0.18); }
.hdkd-drawer__back:hover { background: #f5f5f5; }
.hdkd-drawer__next { background: #1C8D82; color: #fff; }
.hdkd-drawer__next:hover { background: #136B62; }
.hdkd-drawer__submit { background: #1C8D82; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hdkd-drawer__submit:hover { background: #136B62; }
.hdkd-drawer__submit:disabled { opacity: 0.5; cursor: default; }

.hdkd-drawer__success { padding: 16px 18px; background: #f0faf8; border-radius: 10px; border: 1px solid rgba(28,141,130,0.15); }
.hdkd-drawer__success p { margin: 0; font-size: 15px; color: #136B62; }
.hdkd-drawer__error { padding: 14px 16px; background: #fdf3f2; border-radius: 10px; border: 1px solid rgba(176,65,59,0.18); }
.hdkd-drawer__error p { margin: 0; font-size: 14px; color: #b0413b; }

/* ---- wizard: pips ---- */
.hdkd-dw__pips { display: flex; gap: 7px; }
.hdkd-dw__pip {
  flex: 1; display: flex; align-items: center; gap: 7px; border: 0; background: #f3f1ec;
  border-radius: 10px; padding: 9px 11px; font-size: 12px; font-weight: 600; color: #8a8175;
  cursor: pointer; font-family: inherit; line-height: 1.2;
}
.hdkd-dw__pip .pn { width: 19px; height: 19px; border-radius: 50%; background: #d8d3ca; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.hdkd-dw__pip.on { background: #f0faf8; color: #136B62; }
.hdkd-dw__pip.on .pn { background: #1C8D82; }

.hdkd-dw__hint { font-size: 13.5px; color: #6b6256; margin: 0; line-height: 1.5; }

/* ---- role cards ---- */
.hdkd-dw__roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hdkd-dw__role { border: 1px solid #e7e3dc; border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; display: flex; flex-direction: column; gap: 3px; position: relative; transition: 150ms; }
.hdkd-dw__role:hover { border-color: #c9d6cf; }
.hdkd-dw__role.on { border-color: #1C8D82; background: #f0faf8; box-shadow: 0 0 0 1px #1C8D82 inset; }
.hdkd-dw__role b { font-size: 14px; font-weight: 600; }
.hdkd-dw__role span { font-size: 12px; color: #6b6256; }
.hdkd-dw__role .dot { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #cfd4dc; }
.hdkd-dw__role.on .dot { border-color: #1C8D82; background: #1C8D82; box-shadow: inset 0 0 0 3px #fff; }

/* ---- event-type chips (single-select) ---- */
.hdkd-dw__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hdkd-dw__chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e7e3dc !important; border-radius: 999px !important; padding: 8px 14px !important; margin: 0 !important; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; background: #fff; color: #4a453f; transition: 150ms; }
.hdkd-dw__chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--chip-c, #8a857c); flex: 0 0 auto; }
.hdkd-dw__chip:hover { border-color: var(--chip-c, #c9d6cf) !important; }
.hdkd-dw__chip.on { border-color: var(--chip-c, #2A2520) !important; background: var(--chip-c, #2A2520); color: var(--chip-ink, #fff); }
.hdkd-dw__chip.on i { background: var(--chip-ink, #fff); }

/* ---- room cards (colour-led — no photos yet) ---- */
.hdkd-dw__rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hdkd-dw__room { border: 1px solid #e7e3dc; border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; position: relative; transition: 150ms; }
.hdkd-dw__room:hover { border-color: #c9d6cf; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,18,15,0.08); }
.hdkd-dw__room.on { border-color: #1C8D82; box-shadow: 0 0 0 2px #1C8D82; }
.hdkd-dw__ph { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 12px 13px; }
.hdkd-dw__roomname { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; max-width: 88%; }
.hdkd-dw__cap { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,0.92); color: #2A2520; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 600; }
.hdkd-dw__tick { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: #1C8D82; opacity: 0; transition: 150ms; }
.hdkd-dw__room.on .hdkd-dw__tick { opacity: 1; }
.hdkd-dw__tick svg { width: 14px; height: 14px; }
.hdkd-dw__b { padding: 12px 15px 15px; }
.hdkd-dw__n { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.hdkd-dw__m { font-size: 12px; color: #6b6256; margin-top: 2px; }
.hdkd-dw__rp { margin-top: 8px; font-size: 13px; font-weight: 600; color: #136B62; }
.hdkd-dw__tech { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.hdkd-dw__tech span { font-size: 10.5px; color: #6b6256; border: 1px solid #e7e3dc; border-radius: 999px; padding: 2px 8px; }

/* flexible / egal — full-width bar */
.hdkd-dw__room--any { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: #f0faf8; border-style: dashed; }
.hdkd-dw__room--any:hover { transform: none; box-shadow: none; }
.hdkd-dw__room--any.on { border-style: solid; }
.hdkd-dw__anytick { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #cfd4dc; color: transparent; display: flex; align-items: center; justify-content: center; }
.hdkd-dw__room--any.on .hdkd-dw__anytick { background: #1C8D82; border-color: #1C8D82; color: #fff; }
.hdkd-dw__anytick svg { width: 18px; height: 18px; }

/* ---- selection callout ---- */
.hdkd-dw__price { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f0faf8; border: 1px solid #cfe9e4; border-radius: 12px; padding: 14px 18px; }
.hdkd-dw__price b { font-size: 14px; color: #136B62; }
.hdkd-dw__price small { display: block; font-size: 11.5px; color: #6b6256; font-weight: 400; margin-top: 2px; }

/* ---- live availability + cost feedback ---- */
.hdkd-dw__fb { display: flex; flex-direction: column; gap: 12px; background: #faf9f6; border: 1px solid #ecebe4; border-radius: 12px; padding: 14px 16px; }
.hdkd-dw__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.hdkd-dw__badge.is-pending { background: #f0eee9; color: #8a857c; }
.hdkd-dw__badge.is-ok { background: #e7f6ef; color: #1f8a5b; }
.hdkd-dw__badge.is-busy { background: #fdeceb; color: #c0433c; }
.hdkd-dw__cost-head { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a857c; margin: 0 0 10px; }
.hdkd-dw__tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.hdkd-dw__tier { flex: 1 1 120px; border: 1px solid #e7e3dc; border-radius: 10px; padding: 9px 12px; background: #fff; transition: 150ms; }
.hdkd-dw__tier.is-selected { border-color: #1C8D82; background: #f0faf8; box-shadow: 0 0 0 1px #1C8D82 inset; }
.hdkd-dw__tier-lbl { display: block; font-size: 11px; color: #8a857c; letter-spacing: 0.02em; }
.hdkd-dw__tier-val { display: block; font-size: 15px; font-weight: 600; color: #2A2520; margin-top: 2px; }
.hdkd-dw__tier.is-selected .hdkd-dw__tier-val { color: #136B62; }
.hdkd-dw__tier-dep { display: block; font-size: 11px; color: #6b6256; opacity: 0.75; margin-top: 2px; }
.hdkd-dw__cost-note { font-size: 11px; color: #8a857c; line-height: 1.4; }
.hdkd-dw__cost-note.is-we { color: #b57314; }

/* ---- event-registration drawer bits ---- */
.hdkd-anm-free { font-size: 13px; font-weight: 600; color: #136B62; background: #f0faf8; border: 1px solid #cfe9e4; border-radius: 10px; padding: 9px 13px; margin: 0; }
.hdkd-anm-intro { font-size: 13.5px; color: #6b6256; line-height: 1.5; margin: 0; }
.hdkd-anm-tel { display: flex; gap: 8px; }
.hdkd-anm-tel .hdkd-anm-cc { flex: 0 1 auto; width: auto !important; max-width: 45%; min-width: 0; }
.hdkd-anm-tel input { flex: 1; width: auto !important; min-width: 0; }
.hdkd-anm-ds { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: #6b6256; line-height: 1.45; cursor: pointer; }
.hdkd-anm-ds input { margin-top: 2px; flex: 0 0 auto; }
.hdkd-anm-ds a { color: #1C8D82; text-decoration: underline; }
.hdkd-anm-notice { display: flex; flex-direction: column; gap: 16px; padding: 6px 0; }
.hdkd-anm-note { font-size: 15px; color: #4a453f; line-height: 1.55; margin: 0; }
.hdkd-anm-extbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #1C8D82; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 180ms ease; }
.hdkd-anm-extbtn:hover { background: #136B62; }

/* ---- per-event eigene Felder + Einwilligungen (Kazim's 'public' renderers,
       reused verbatim in the drawer — styled to match the drawer's own fields/DS
       so his consent_<key> / field_<key> inputs post + validate unchanged) ---- */
.hdkd-anm-custom { display: flex; flex-direction: column; gap: 16px; }
.hdkd-anm-cf { display: flex; flex-direction: column; gap: 7px; }
.hdkd-anm-cf-lab { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: #666; line-height: 1.2; }
.hdkd-anm-custom input,
.hdkd-anm-custom select,
.hdkd-anm-custom textarea {
  font-family: inherit; font-size: 15px; padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: #fff; color: #2A2520;
  width: 100%; line-height: 1.3; box-shadow: none; transition: border-color 200ms ease;
}
.hdkd-anm-custom input:focus,
.hdkd-anm-custom select:focus,
.hdkd-anm-custom textarea:focus { outline: none; border-color: #1C8D82; }
.hdkd-anm-custom textarea { resize: vertical; min-height: 78px; }
.hdkd-anm-custom select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

.hdkd-anm-consents { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06); }
.hdkd-anm-consent { margin: 0; }
.hdkd-anm-consent label { display: flex; align-items: flex-start; gap: 11px; font-size: 12.5px; color: #6b6256; line-height: 1.45; cursor: pointer; }
.hdkd-anm-consent a { color: #1C8D82; text-decoration: underline; }
.hdkd-consent-req { color: #c0433c; font-weight: 700; }

/* Custom-drawn checkboxes — the theme resets native ones to invisible, so people
   were clicking blindly. Give a clear box + teal checked state. Scoped under the
   drawer ID so it beats the theme's appearance reset without !important. */
#hdkd-anm-drawer .hdkd-anm-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0;
  border: 2px solid #b8b2a8; border-radius: 5px; background: #fff;
  cursor: pointer; position: relative; box-shadow: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
#hdkd-anm-drawer .hdkd-anm-consent label:hover input[type="checkbox"] { border-color: #1C8D82; }
#hdkd-anm-drawer .hdkd-anm-consent input[type="checkbox"]:focus { outline: none; border-color: #1C8D82; box-shadow: 0 0 0 3px rgba(28,141,130,0.18); }
#hdkd-anm-drawer .hdkd-anm-consent input[type="checkbox"]:checked { background: #1C8D82; border-color: #1C8D82; }
#hdkd-anm-drawer .hdkd-anm-consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; box-sizing: content-box;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* keep the invalid flash visible on the drawn box */
#hdkd-anm-drawer .hdkd-anm-consent input[type="checkbox"].hdkd-dw--invalid { border-color: #d1544c; box-shadow: 0 0 0 3px rgba(209,84,76,0.16); }

/* ---- flexible-date toggle ---- */
.hdkd-dw__switch { display: flex; align-items: center; gap: 12px; border: 1px solid #e7e3dc; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; margin: 0; }
.hdkd-dw__switch .sw { width: 42px; height: 24px; border-radius: 999px; background: #d8d3ca; position: relative; flex: 0 0 auto; transition: 180ms; }
.hdkd-dw__switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: 180ms; }
.hdkd-dw__switch.on .sw { background: #1C8D82; }
.hdkd-dw__switch.on .sw::after { transform: translateX(18px); }
.hdkd-dw__switch b { font-size: 13.5px; font-weight: 600; }
.hdkd-dw__switch small { display: block; font-size: 12px; color: #6b6256; }
.hdkd-dw__row3 { grid-template-columns: 1fr 1fr 1fr; transition: opacity 180ms ease; }
.hdkd-dw__row3.is-flex { opacity: 0.45; }

@media (max-width: 760px) {
  .hdkd-dw__rooms { grid-template-columns: 1fr 1fr; }
  .hdkd-dw__roles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hdkd-drawer__row, .hdkd-dw__row3 { grid-template-columns: 1fr; }
  .hdkd-drawer__head, .hdkd-drawer__scroll, .hdkd-drawer__footer, .hdkd-drawer__context:not(:empty) { padding-left: 18px; padding-right: 18px; }
  .hdkd-drawer__navbtns { width: 100%; }
  .hdkd-drawer__submit, .hdkd-drawer__next { flex: 1; }
  /* 16px: iOS zooms the page when focusing an input under 16px (booking form). */
  .hdkd-drawer__field input, .hdkd-drawer__field textarea,
  .hdkd-anm-custom input, .hdkd-anm-custom textarea { font-size: 16px !important; }
}
