/* Kontaktformular-Popup (assets/js/contact-form.js) */
.rn-cf {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 16px;
  background: #ffffff;
  color: #0B1220;
  box-shadow: 0 24px 64px -12px rgba(16, 24, 40, 0.35);
  font-family: 'Red Hat Display', 'RHD Fallback Arial', 'RHD Fallback Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.rn-cf::backdrop { background: rgba(11, 18, 32, 0.55); }
.rn-cf-box { display: flex; flex-direction: column; max-height: inherit; }
.rn-cf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.rn-cf-title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.rn-cf-close { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 999px; color: #475467; cursor: pointer; display: grid; place-items: center; }
.rn-cf-close svg { width: 22px; height: 22px; }
.rn-cf-close:hover { background: #F2F4F7; color: #0B1220; }
.rn-cf-form, .rn-cf-done { display: flex; flex-direction: column; gap: 16px; padding: 12px 24px 24px; overflow-y: auto; }
.rn-cf-form[hidden], .rn-cf-done[hidden] { display: none; }
.rn-cf-topic { margin: 0; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: #E6F6FD; color: #0A789F; font-size: 0.8125rem; font-weight: 700; }
.rn-cf-topic[hidden] { display: none; }
.rn-cf-intro { margin: 0; color: #475467; font-size: 0.9375rem; line-height: 1.55; }
.rn-cf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rn-cf-field label, .rn-cf-field legend { font-size: 0.875rem; font-weight: 700; color: #0B1220; padding: 0; }
.rn-cf-opt { font-weight: 500; color: #667085; }
.rn-cf-hint { margin: 6px 0 0; font-size: 0.8125rem; color: #667085; }
.rn-cf-field input[type="text"], .rn-cf-field input[type="email"], .rn-cf-field textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #D0D5DD;
  border-radius: 10px;
  background: #ffffff;
  color: #0B1220;
}
.rn-cf-field textarea { resize: vertical; min-height: 104px; }
.rn-cf-field input:focus-visible, .rn-cf-field textarea:focus-visible { outline: 2px solid #0A789F; outline-offset: 1px; border-color: #0A789F; }
.rn-cf-field [aria-invalid="true"] { border-color: #D92D20; }
.rn-cf-err { margin: 0; color: #B42318; font-size: 0.8125rem; }
.rn-cf-err[hidden] { display: none; }
.rn-cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rn-cf-pills label { position: relative; flex: 1 1 auto; min-width: 0; font-weight: 600; cursor: pointer; }
.rn-cf-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rn-cf-pills span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 6px; border: 1.5px solid #D0D5DD; border-radius: 999px; font-size: 0.9375rem; text-align: center; white-space: nowrap; }
.rn-cf-pills input:checked + span { border-color: #0B1220; background: #0B1220; color: #ffffff; }
.rn-cf-pills input:focus-visible + span { outline: 2px solid #0A789F; outline-offset: 2px; }
.rn-cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rn-cf-legal { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: #667085; }
.rn-cf-legal a { color: #0B1220; }
.rn-cf-status { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FEF3F2; color: #B42318; font-size: 0.875rem; }
.rn-cf-status[hidden] { display: none; }
.rn-cf-submit {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #0B1220;
  color: #ffffff;
  cursor: pointer;
}
.rn-cf-submit:hover { background: #1d2939; }
.rn-cf-submit:disabled { opacity: 0.6; cursor: progress; }
.rn-cf-submit:focus-visible { outline: 2px solid #0A789F; outline-offset: 2px; }
.rn-cf-done p { margin: 0; color: #475467; line-height: 1.55; }
.rn-cf-done .rn-cf-done-title { color: #0B1220; font-size: 1.125rem; font-weight: 800; }
/* Auslöser "Nachricht senden": versteckt, bis das Formular bereit ist */
[data-rn-contact][hidden] { display: none !important; }
.rn-contact-alt { margin: 14px 0 0; text-align: center; font-family: 'Red Hat Display', 'RHD Fallback Arial', 'RHD Fallback Roboto', system-ui, sans-serif; font-size: 0.9375rem; color: inherit; opacity: 0.85; }
.rn-contact-alt button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rn-modal-alt { margin: 0; padding: 10px 16px; font-family: 'Red Hat Display', 'RHD Fallback Arial', 'RHD Fallback Roboto', system-ui, sans-serif; font-size: 0.85rem; text-align: center; color: #475467; border-top: 1px solid #eaecf0; }
.rn-modal-alt button { font: inherit; color: #0a789f; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
  .rn-cf-pills label { flex-basis: calc(50% - 4px); }
  .rn-cf { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .rn-cf-head { padding: 16px 16px 0; }
  .rn-cf-form, .rn-cf-done { padding: 8px 16px 16px; gap: 14px; }
}
