.zw-anfrage { margin: 24px 0; }
.zw-anfrage-dialog { box-sizing: border-box; width: min(600px, calc(100% - 32px)); max-height: 90vh; margin: auto; padding: 24px; border: 1px solid #ccd0d4; border-radius: 12px; color: #1d2327; background: #fff; overflow: auto; }
.zw-anfrage-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.zw-anfrage-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.zw-anfrage-heading h2 { margin: 0; font-size: 24px; }
.zw-anfrage-close { flex: none; padding: 0 10px; font-size: 28px; line-height: 36px; }
.zw-anfrage-form label { display: block; margin-bottom: 14px; font-weight: 600; }
.zw-anfrage-form input, .zw-anfrage-form textarea, .zw-anfrage-form select { box-sizing: border-box; display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; }
.zw-anfrage-form input[readonly] { background: #f4f5f6; }
.zw-anfrage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.zw-anfrage-help { font-size: inherit; color: #555; }
.zw-anfrage-status { margin: 12px 0; }
.zw-anfrage-status:empty { display: none; }
.zw-anfrage-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .zw-anfrage-grid { grid-template-columns: 1fr; } .zw-anfrage-dialog { padding: 18px; } }

body .zw-anfrage-open { display: block; margin: 0 auto; padding: 12px 24px; border: 1px solid #a9cdeb; border-radius: 8px; background: #e7f2fc; color: #243746; font: inherit; font-weight: 600; cursor: pointer; }
body .zw-anfrage-open:hover { background: #d6e9fa; color: #243746; }
body .zw-anfrage-open:focus-visible { outline: 3px solid #17649a; outline-offset: 3px; }

.zw-anfrage-feedback:empty { display: none; }

.zw-anfrage-form .zw-anfrage-question { display: flex; align-items: baseline; gap: 8px; font-weight: 400; cursor: pointer; }
.zw-anfrage-form .zw-anfrage-question input { display: inline-block; width: auto; margin: 0; flex: none; }

.zw-anfrage-actions { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto; padding-right: 12px; border: 1px solid #a9cdeb; border-radius: 8px; background: #e7f2fc; }
body .zw-anfrage-actions .zw-anfrage-open { margin: 0; border: 0; }
.zw-anfrage-feedback { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; font-size: 28px; font-weight: 700; line-height: 1; }
.zw-anfrage-feedback[hidden] { display: none; }
.zw-anfrage-feedback[data-state="success"] { color: #187332; }
.zw-anfrage-feedback[data-state="error"] { color: #c02020; }
.zw-anfrage-feedback-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.zw-anfrage-questions { margin: 0 0 16px; padding: 12px; border: 1px solid #ccd0d4; border-radius: 6px; }
.zw-anfrage-questions legend { font-weight: 600; padding: 0 4px; }
.zw-anfrage-question-block { margin: 8px 0 14px; }
.zw-anfrage-question-block:last-child { margin-bottom: 0; }
.zw-anfrage-question-block .zw-anfrage-question { margin-bottom: 4px; }
.zw-anfrage-question-hint { margin: 0 0 0 24px; font-size: inherit; color: #555; }

.zw-new-groups-buttons{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.zw-new-groups-buttons>.zw-anfrage{margin:0}.zw-new-groups-buttons .zw-anfrage-actions{padding-right:0}


.zw-anfrage-appointment { margin: 14px 0; }
.zw-anfrage-appointment:first-child { margin-top: 0; }
.zw-anfrage-appointment:last-child { margin-bottom: 0; }
.zw-anfrage-appointment-text { margin: 4px 0 0 24px; font-size: inherit; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.zw-anfrage-appointment-deadline { margin: 4px 0 0 24px; font-size: inherit; color: #555; }


.zw-anfrage-info { text-indent: 0; display: block; margin: 8px 0 12px; font-size: 14px; font-weight: 400; line-height: 1.6; }
.zw-anfrage-info-dates { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; text-indent: 0; }
.zw-anfrage-info-trigger, .zw-anfrage-info-date { position: relative; display: inline-block; }
.zw-anfrage-info-trigger { cursor: help; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; text-indent: 0; }
.zw-anfrage-info-dot { display: inline-block; width: 12px; height: 12px; border: 1px solid #8a6900; border-radius: 50%; background: #ffd43b; vertical-align: baseline; }
.zw-anfrage-info-tooltip { position: absolute; z-index: 110; top: 100%; left: 0; box-sizing: border-box; width: max-content; max-width: min(320px, 75vw); padding: 12px; border: 1px solid #a9cdeb; border-radius: 6px; background: #fffbe6; color: #243746; box-shadow: 0 3px 12px #0002; white-space: pre-line; overflow-wrap: anywhere; visibility: hidden; opacity: 0; }
.zw-anfrage-info-trigger:hover > .zw-anfrage-info-tooltip, .zw-anfrage-info-trigger:focus > .zw-anfrage-info-tooltip, .zw-anfrage-info-date:hover > .zw-anfrage-info-tooltip, .zw-anfrage-info-date:focus-within > .zw-anfrage-info-tooltip { visibility: visible; opacity: 1; }
body .zw-anfrage-date-open { padding: 0; border: 0; background: transparent; color: #17649a; font: inherit; text-decoration: underline; cursor: pointer; }
body .zw-anfrage-date-open:hover { background: transparent; color: #10486f; }
.zw-anfrage-info-trigger:focus-visible, body .zw-anfrage-date-open:focus-visible { outline: 2px solid #17649a; outline-offset: 3px; }

/* A marker belongs only to a date with visible, open enquiry information. */
body .zw-calendar-card:has(.zw-calendar-info) { position: relative; overflow: visible; }
body .zw-calendar-card:has(.zw-calendar-info) > header { border-radius: 8px; }
.zw-calendar-info { position: static; text-indent: 0; }
body .zw-calendar-info > .zw-anfrage-date-open { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border-radius: 8px; background: transparent; }
body .zw-calendar-info > .zw-anfrage-date-open:hover { background: transparent; box-shadow: inset 0 0 0 2px #8cbde1; }
.zw-calendar-info .zw-anfrage-info-dot { position: absolute; top: 9px; right: 9px; display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; font: bold 11px/1 Georgia, serif; color: #624b00; }
.zw-calendar-info > .zw-anfrage-info-tooltip { pointer-events: none; left: auto; right: 4px; top: 30px; text-align: left; font-size: 14px; font-weight: 400; line-height: 1.5; }
.zw-calendar-info:hover > .zw-anfrage-info-tooltip, .zw-calendar-info:focus-within > .zw-anfrage-info-tooltip { visibility: visible; opacity: 1; }

body.zw-document-layout .entry-content .zw-document-facts > li.zw-anfrage-info-item { text-indent: 0; }
.zw-anfrage-info-item > .zw-anfrage-info { margin-bottom: 0; }

/* Keep all enquiry text at one size, including theme-styled legends and hints. */
body .zw-anfrage .zw-anfrage-dialog,
body .zw-anfrage .zw-anfrage-dialog * { font-size: 1rem !important; }
