/* CF7 public-event enquiry form: all styles isolated from Feier-Anfrage & other CF7 forms. */
.mpcf7-event{--me-petrol:#0e3440;--me-gold:#e7bc3f;--me-border:#38606a;--me-muted:#d3e4e9;color:#fff;font:inherit;width:100%;max-width:100%;min-width:0;container-type:inline-size}
.mpcf7-event,.mpcf7-event *{box-sizing:border-box}
.mpcf7-event>.wpcf7{width:100%;max-width:100%;min-width:0;background:linear-gradient(133deg,#0c2e39,#124855);border:1px solid #295c65;border-radius:17px;padding:24px 20px}
.mpcf7-event .wpcf7 form,.mpcf7-event .mpcf7-event-form{margin:0!important;padding:0;min-width:0}
.mpcf7-event .mpcf7-event-head{margin:0 0 20px}
.mpcf7-event .mpcf7-event-overline{font-size:10px;letter-spacing:.1em;color:var(--me-gold);font-weight:800}
.mpcf7-event .mpcf7-event-head h3{color:#fff!important;font-size:clamp(22px,3vw,28px)!important;font-weight:750!important;margin:7px 0 6px!important;line-height:1.25!important}
.mpcf7-event .mpcf7-event-head p{color:var(--me-muted)!important;margin:0!important;font-size:13px;line-height:1.55}
.mpcf7-event .mpcf7-event-group{margin:0 0 16px}
.mpcf7-event .mpcf7-event-label{display:block;font-weight:750;margin:0 0 8px;font-size:14px;color:#fff}
.mpcf7-event .mpcf7-event-days,.mpcf7-event .mpcf7-event-sessions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.mpcf7-event .mpcf7-event-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:2px;width:100%;min-width:0;min-height:68px;border-radius:10px;background:#fff;border:2px solid transparent;color:#143743;padding:10px 12px;margin:0;cursor:pointer;appearance:none;font:inherit;line-height:1.4;box-shadow:none;transition:background-color .15s ease,border-color .15s ease}
.mpcf7-event .mpcf7-event-choice strong{font-size:14px;font-weight:800;color:#0d323e}
.mpcf7-event .mpcf7-event-choice span{font-size:12px;color:#244d58}
.mpcf7-event .mpcf7-event-choice small{font-size:11px;color:#55727a}
.mpcf7-event .mpcf7-event-choice.is-selected{background:#fff6d5;border-color:var(--me-gold);box-shadow:0 0 0 1px #bf9225}
.mpcf7-event .mpcf7-event-choice:focus-visible{outline:3px solid #fff;outline-offset:2px}
.mpcf7-event .mpcf7-event-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:16px;margin:18px 0}
.mpcf7-event .mpcf7-event-field{display:block;min-width:0;margin:0!important;padding:0}
.mpcf7-event .mpcf7-event-span{grid-column:1/-1}
.mpcf7-event .mpcf7-event-field .wpcf7-form-control-wrap{display:block;width:100%;min-width:0}
.mpcf7-event .mpcf7-event-fields input:not([type=checkbox]),.mpcf7-event .mpcf7-event-fields textarea{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;background:#fff!important;color:#123442!important;border:1px solid #d4e4e7!important;border-radius:10px!important;box-shadow:none!important;font-family:inherit!important;font-size:14px!important;line-height:1.45!important;padding:12px 13px!important}
.mpcf7-event .mpcf7-event-fields input:not([type=checkbox]){height:48px!important;min-height:48px!important}
/* 0.2.2 mistakenly used CF7 3x40 (3 columns / 40 rows); cap legacy markup too. */
.mpcf7-event .mpcf7-event-fields textarea{height:132px!important;min-height:132px!important;max-height:none!important;resize:vertical!important;overflow:auto!important}
.mpcf7-event .mpcf7-event-fields input::placeholder,.mpcf7-event .mpcf7-event-fields textarea::placeholder{color:#748b9b!important;opacity:1}
.mpcf7-event .mpcf7-event-fields input:focus-visible,.mpcf7-event .mpcf7-event-fields textarea:focus-visible{outline:2px solid var(--me-gold)!important;outline-offset:2px}
.mpcf7-event .mpcf7-event-fields .wpcf7-not-valid{border-color:#e69b9b!important}
.mpcf7-event .wpcf7-not-valid-tip{display:block;color:#ffbbbb!important;font-size:12px!important;line-height:1.35;margin:5px 0 0!important;padding:0!important}
.mpcf7-event .mpcf7-event-note{border:1px solid #4d8884;background:#165058;border-radius:9px;font-size:12px;line-height:1.55;padding:10px 12px;margin:15px 0 13px;color:#f0f4f3}
.mpcf7-event .mpcf7-event-consent{margin:0 0 17px;font-size:12px;line-height:1.55;color:#dbe8ea}
.mpcf7-event .mpcf7-event-consent .wpcf7-form-control-wrap,.mpcf7-event .mpcf7-event-consent .wpcf7-acceptance{display:block;width:100%}
.mpcf7-event .mpcf7-event-consent .wpcf7-list-item{display:block;margin:0!important}
.mpcf7-event .mpcf7-event-consent .wpcf7-list-item label{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.mpcf7-event .mpcf7-event-consent input[type=checkbox]{display:block;flex:0 0 16px;width:16px!important;height:16px!important;margin:2px 0 0!important;accent-color:var(--me-gold);cursor:pointer}
.mpcf7-event .mpcf7-event-consent .wpcf7-list-item-label{display:block;min-width:0;flex:1}
.mpcf7-event .mpcf7-event-consent a{color:#ffe18b!important;text-decoration:underline}
.mpcf7-event .mpcf7-event-submit{margin:0}
.mpcf7-event .mpcf7-event-submit input[type=submit]{display:block!important;width:100%!important;padding:13px 18px!important;margin:0!important;border:0!important;border-radius:10px!important;background:var(--me-gold)!important;color:#092c38!important;font-weight:800!important;font-size:14px!important;line-height:1.4!important;min-height:50px!important;cursor:pointer;text-align:center}
.mpcf7-event .mpcf7-event-submit input[type=submit]:hover{background:#f3cd58!important}
.mpcf7-event .mpcf7-event-submit input[type=submit]:focus-visible{outline:3px solid #fff!important;outline-offset:2px}
.mpcf7-event .mpcf7-event-error{color:#ffe0be;font-weight:700;font-size:12px;line-height:1.4;margin:5px 0}
.mpcf7-event .mpcf7-event-error:empty{display:none}
.mpcf7-event .mpcf7-event-hidden{position:absolute!important;left:-99999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none!important}
.mpcf7-event .mpcf7-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mpcf7-event .mpcf7-event-success{border:1px solid var(--me-gold);border-radius:10px;background:#134854;margin-top:14px;padding:14px;color:#fff}
.mpcf7-event .mpcf7-event-success[hidden]{display:none!important}
.mpcf7-event .mpcf7-event-success p{margin:5px 0 0}
/* A successful email must never appear alongside stale red CF7 errors. */
.mpcf7-event.mpcf7-event-sent .wpcf7-not-valid-tip{display:none!important}
.mpcf7-event.mpcf7-event-sent .mpcf7-event-fields .wpcf7-not-valid{border-color:#d4e4e7!important}
.mpcf7-event.mpcf7-event-sent .wpcf7-response-output{display:none!important}
.mpcf7-event .wpcf7-response-output{margin:14px 0!important;padding:10px!important;color:#fff!important;border-radius:10px!important;font-size:13px!important}
/* v0.2.6: Avoid duplicate messages only for CF7 validation failures.
   Inline field tips / custom Datenschutz error remain visible.
   Mail failure, spam and other server errors must continue to show. */
.mpcf7-event form.wpcf7-form.invalid .wpcf7-response-output,
.mpcf7-event form.wpcf7-form[data-status="invalid"] .wpcf7-response-output{display:none!important}
@container(max-width:500px){.mpcf7-event>.wpcf7{padding:17px 13px}.mpcf7-event .mpcf7-event-fields{grid-template-columns:1fr;gap:13px}.mpcf7-event .mpcf7-event-span{grid-column:auto}.mpcf7-event .mpcf7-event-days,.mpcf7-event .mpcf7-event-sessions{gap:8px}.mpcf7-event .mpcf7-event-choice{padding:10px}}
@container(max-width:340px){.mpcf7-event .mpcf7-event-days,.mpcf7-event .mpcf7-event-sessions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mpcf7-event .mpcf7-event-choice{transition:none}}

/* v0.2.5: only our five public event forms; never hide the CF7 root/form,
   because the success panel is a child of the original CF7 form markup. */
.mpcf7-event .mpcf7-event-consent-error{color:#ffc3c3;font-weight:650;font-size:12px;line-height:1.5;margin:6px 0 0;padding:0}
.mpcf7-event .mpcf7-event-consent-error[hidden]{display:none!important}
.mpcf7-event .mpcf7-event-consent-invalid input[type=checkbox]{outline:2px solid #f3a7a7;outline-offset:2px}
.mpcf7-event.mpcf7-event-sent .mpcf7-event-form > :not(.mpcf7-event-success){display:none!important}
.mpcf7-event.mpcf7-event-sent .mpcf7-event-success{display:flex!important;align-items:flex-start;gap:16px;padding:20px 22px;margin:0;background:#113f4b;border:1px solid var(--me-gold);border-radius:12px;box-shadow:0 8px 26px rgba(0,0,0,.11);color:#fff;min-width:0}
.mpcf7-event .mpcf7-event-success-check{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:1.5px solid #e7bc3f;color:#ffe294;font-size:24px;font-weight:800;line-height:1}
.mpcf7-event .mpcf7-event-success-copy{flex:1;min-width:0;font-size:14px;line-height:1.55;color:#f0f7f8}
.mpcf7-event .mpcf7-event-success-title{display:block;font-size:19px;font-weight:800;color:#fff;line-height:1.3;margin:0 0 12px}
.mpcf7-event .mpcf7-event-success-copy p{margin:0 0 9px;color:inherit}
.mpcf7-event .mpcf7-event-success-copy .mpcf7-event-success-note{margin:14px 0 0;padding-top:11px;border-top:1px solid #376875;color:#f9f1ce}
@container(max-width:380px){.mpcf7-event.mpcf7-event-sent .mpcf7-event-success{padding:18px 15px;gap:11px}.mpcf7-event .mpcf7-event-success-check{width:30px;height:30px;flex-basis:30px;font-size:19px}.mpcf7-event .mpcf7-event-success-title{font-size:17px}}

/* v0.3.0 · dedicated CF7 Vormerkung forms; regular Event-Anfragen unchanged. */
.mpcf7-event--vormerkung .mpcf7-vormerkung-topfields{margin:0 0 20px}
.mpcf7-event--vormerkung .mpcf7-vormerkung-bottomfields{margin:15px 0 16px}
.mpcf7-event--vormerkung .mpcf7-vormerkung-time-hint{font-size:13px;color:#e5eef0;margin:0 0 8px}
.mpcf7-event--vormerkung .mpcf7-event-sessions[hidden],.mpcf7-event--vormerkung .mpcf7-vormerkung-time-hint[hidden]{display:none!important}
.mpcf7-event--vormerkung .mpcf7-event-consent{margin:0;padding:7px 1px;color:#eff6f7}
.mpcf7-event--vormerkung .mpcf7-vormerkung-consent-box{margin:0 0 18px;background:#15434c;border:1px solid #4a737b;border-radius:11px;padding:8px 12px}
.mpcf7-event--vormerkung .mpcf7-event-consent:not(:last-child){border-bottom:1px solid #39636b;padding-bottom:12px;margin-bottom:5px}
.mpcf7-event--vormerkung .mpcf7-vormerkung-bottomfields textarea{height:112px!important;min-height:112px!important}
@container(max-width:500px){.mpcf7-event--vormerkung .mpcf7-vormerkung-consent-box{padding:8px 10px}}

/* v0.3.9 — avoid sticky navigation covering anchored event enquiry forms. */
.mpcf7-event[id]{scroll-margin-top:105px}


/* v0.3.10 — Factory Theme / WPBakery dark-textarea protection, event scope only.
   Applies to Anfrage, Vormerkung and Buffet; no global textareas or form IDs.
   Explicit CF7 and focus-state specificity is intentional: the theme can paint
   fields black on focus, even over the generic event input rule above. */
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:hover,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:focus,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:active,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:focus-visible {
  background:#ffffff!important;
  background-color:#ffffff!important;
  background-image:none!important;
  color:#123442!important;
  -webkit-text-fill-color:#123442!important;
  caret-color:#123442!important;
  color-scheme:light;
  opacity:1!important;
  box-shadow:none!important;
}
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control::placeholder {
  color:#748b9b!important;
  -webkit-text-fill-color:#748b9b!important;
  opacity:1!important;
}
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:focus,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:focus-visible {
  outline:2px solid var(--me-gold)!important;
  outline-offset:2px;
}
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:-webkit-autofill,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:-webkit-autofill:hover,
body .mpcf7-event .mpcf7-event-fields .wpcf7-form-control-wrap textarea.wpcf7-form-control:-webkit-autofill:focus {
  -webkit-box-shadow:0 0 0 1000px #ffffff inset!important;
  box-shadow:0 0 0 1000px #ffffff inset!important;
  -webkit-text-fill-color:#123442!important;
  caret-color:#123442!important;
}
