
/* Einheitliches Kontaktformular – Familie Leinberger (DU) */
[data-open-contact] { font: inherit; }
.legal-navigation .contact-link-button,
.orientation-footer .contact-link-button {
  border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; text-decoration: none;
}
.legal-navigation .contact-link-button:hover,
.legal-navigation .contact-link-button:focus-visible { color: var(--color-secondary); }

.fl-contact-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0;
  margin: auto;
  border: 0; border-radius: 18px; background: #f8f6f1; color: #2a2a2a;
  box-shadow: 0 30px 90px rgba(0,0,0,.30); overflow: auto;
  font-family: var(--font-body, "Nunito Sans", sans-serif);
}
.fl-contact-dialog::backdrop { background: rgba(25, 30, 26, .68); backdrop-filter: blur(4px); }
.fl-contact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 30px 36px 24px; border-bottom: 1px solid rgba(46,69,54,.16); }
.fl-contact-label { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #556b4e; font-size: 11px; font-weight: 800; }
.fl-contact-label span { width: 18px; height: 2px; background: #556b4e; }
.fl-contact-head h2 { margin: 0; color: #2a2a2a; font-family: var(--font-heading, "Quicksand", sans-serif); font-size: clamp(30px,3.3vw,40px); line-height: 1.08; letter-spacing: -1.5px; }
.fl-contact-close, .fl-privacy-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(46,69,54,.20); border-radius: 50%; background: #fff; color: #2a2a2a; font-size: 25px; line-height: 1; cursor: pointer; }
.fl-contact-close:hover, .fl-contact-close:focus-visible, .fl-privacy-close:hover, .fl-privacy-close:focus-visible { border-color: #556b4e; color: #556b4e; }
.fl-contact-direct { display: grid; gap: 10px; padding: 0 0 2px; }
.fl-contact-direct h3 { margin: 0; color: #2a2a2a; font-family: var(--font-heading, "Quicksand", sans-serif); font-size: 20px; line-height: 1.2; }
.fl-contact-direct > p { margin: 0; color: #5f675f; font-size: 12px; line-height: 1.55; }
.fl-contact-direct-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid rgba(46,69,54,.16); border-radius: 9px; background: rgba(255,255,255,.42); }
.fl-contact-direct-card strong { color: #2a2a2a; font-size: 13px; overflow-wrap: anywhere; }
.fl-contact-direct-copy { min-height: 38px; padding: 0 14px; border: 1px solid #556b4e; border-radius: 7px; background: transparent; color: #465b43; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.fl-contact-direct-copy:hover, .fl-contact-direct-copy:focus-visible { background: #2e4536; color: #fff; }
.fl-contact-direct-feedback { grid-column: 1 / -1; min-height: 0; color: #697169; font-size: 10px; }

.fl-contact-form { display: grid; gap: 16px; margin: 0 !important; padding: 26px 36px 30px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.fl-contact-form[hidden] { display: none !important; }
.fl-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fl-contact-form label:not(.fl-contact-consent) { display: grid; gap: 7px; margin: 0; color: #2a2a2a; }
.fl-contact-field-label { display: inline-flex; align-items: baseline; gap: 4px; color: #2a2a2a; font-size: 12px; font-weight: 750; line-height: 1.3; letter-spacing: .15px; }
.fl-contact-field-label > span { color: #556b4e; font-weight: 800; }
.fl-contact-form input[type="text"], .fl-contact-form input[type="email"], .fl-contact-form textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(46,69,54,.22); border-radius: 9px; background: #fff; color: #2a2a2a; font: 14px/1.45 var(--font-body, "Nunito Sans", sans-serif); } 
.fl-contact-form input[type="text"], .fl-contact-form input[type="email"] { min-height: 46px; }
.fl-contact-form textarea { min-height: 145px; resize: vertical; }
.fl-contact-form input:focus, .fl-contact-form textarea:focus { border-color: #556b4e; outline: 0; box-shadow: 0 0 0 3px rgba(85,107,78,.14); background: #fff; }
.fl-contact-consent { display: flex; align-items: flex-start; gap: 11px; margin: 2px 0 0; padding: 12px 14px; border: 1px solid rgba(46,69,54,.14); border-radius: 9px; background: rgba(255,255,255,.42); color: #5f675f; font-size: 11px; line-height: 1.5; }
.fl-contact-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: #556b4e; }
.fl-contact-consent a, .fl-privacy-foot a { color: #465b43; text-decoration: underline; text-underline-offset: 2px; }
.fl-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fl-contact-submit, .fl-contact-success-close, .fl-privacy-back { min-height: 50px; border: 0; border-radius: 9px; background: #2e4536; color: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.fl-contact-submit { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.fl-contact-submit:hover, .fl-contact-submit:focus-visible, .fl-contact-success-close:hover, .fl-contact-success-close:focus-visible, .fl-privacy-back:hover, .fl-privacy-back:focus-visible { background: #556b4e; }
.fl-contact-submit:disabled { opacity: .7; cursor: wait; }
.fl-contact-status { margin: 0; padding: 12px 14px; border: 1px solid #8ebc9c; border-radius: 7px; background: #edf8f0; color: #245c34; font-size: 12px; line-height: 1.5; }
.fl-contact-status--error { border-color: #d8a19b; background: #fff1ef; color: #8a2920; }
.fl-contact-hint { margin: -4px 0 0; color: #697169; font-size: 10px; line-height: 1.45; }

.fl-contact-dialog--success { width: min(590px, calc(100% - 32px)); }
.fl-contact-dialog--success .fl-contact-head { min-height: 68px; justify-content: flex-end; padding: 15px 18px 0; border-bottom: 0; }
.fl-contact-dialog--success .fl-contact-head > div { display: none; }
.fl-contact-dialog--success .fl-contact-form { display: none !important; }
.fl-contact-success[hidden] { display: none !important; }
.fl-contact-success { padding: 2px 52px 46px; text-align: center; }
.fl-contact-success-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 21px; border-radius: 50%; background: rgba(85,107,78,.12); color: #2e4536; font-size: 34px; font-weight: 800; }
.fl-contact-success .fl-contact-label { justify-content: center; margin-bottom: 10px; }
.fl-contact-success h3 { margin: 0; color: #2a2a2a; font-family: var(--font-heading, "Quicksand", sans-serif); font-size: clamp(32px,4vw,42px); line-height: 1.08; }
.fl-contact-success-message { margin: 17px auto 0; max-width: 430px; color: #2a2a2a; font-size: 16px; font-weight: 700; line-height: 1.55; }
.fl-contact-success-note { margin: 9px auto 25px; max-width: 430px; color: #697169; font-size: 13px; line-height: 1.6; }
.fl-contact-success-close { min-width: 210px; padding: 0 20px; }

.fl-privacy-info[hidden] { display: none !important; }
.fl-privacy-info { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; padding: 22px; background: rgba(25,30,26,.55); backdrop-filter: blur(2px); }
.fl-privacy-panel { width: min(650px,100%); max-height: min(720px,calc(100dvh - 44px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #f8f6f1; box-shadow: 0 24px 70px rgba(0,0,0,.32); text-align: left; }
.fl-privacy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; padding: 27px 30px 21px; border-bottom: 1px solid rgba(46,69,54,.16); }
.fl-privacy-head .fl-contact-label { margin-bottom: 8px; }
.fl-privacy-head h3 { margin: 0; max-width: 500px; color: #2a2a2a; font-family: var(--font-heading, "Quicksand", sans-serif); font-size: clamp(24px,3vw,30px); line-height: 1.12; }
.fl-privacy-content { overflow: auto; padding: 23px 30px; color: #505850; font-size: 13px; line-height: 1.7; }
.fl-privacy-content p { margin: 0 0 14px; }
.fl-privacy-content p:last-child { margin-bottom: 0; }
.fl-privacy-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 30px 21px; border-top: 1px solid rgba(46,69,54,.16); }
.fl-privacy-back { min-height: 42px; padding: 0 16px; }
.fl-privacy-foot a { font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .fl-contact-head { padding: 26px 24px 20px; }
  .fl-contact-form { padding: 22px 24px 26px !important; }
  .fl-contact-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 620px) {
  .fl-contact-direct-card { grid-template-columns: 1fr; }
  .fl-contact-direct-copy { width: 100%; }
  .fl-contact-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .fl-contact-success { padding: 0 24px 34px; }
  .fl-privacy-info { padding: 10px; }
  .fl-privacy-head { padding: 22px 20px 18px; }
  .fl-privacy-content { padding: 20px; }
  .fl-privacy-foot { align-items: stretch; flex-direction: column; padding: 16px 20px 20px; }
  .fl-privacy-back { width: 100%; }
  .fl-privacy-foot a { text-align: center; }
}


/* Höhenabhängige Kontaktformular-Anpassung: auf normalen Desktop-Höhen ohne internen Scrollbalken */
@media (min-width: 621px) and (max-height: 920px) {
  .fl-contact-dialog { max-height: calc(100dvh - 24px); overflow: hidden; }
  .fl-contact-head { padding: 20px 30px 16px; }
  .fl-contact-head h2 { font-size: clamp(28px, 3vw, 36px); }
  .fl-contact-form { gap: 10px; padding: 16px 30px 18px !important; }
  .fl-contact-direct { gap: 6px; }
  .fl-contact-direct h3 { font-size: 17px; }
  .fl-contact-direct > p { font-size: 11px; line-height: 1.4; }
  .fl-contact-direct-card { padding: 9px 12px; gap: 8px 12px; }
  .fl-contact-direct-copy { min-height: 34px; }
  .fl-contact-form label:not(.fl-contact-consent) { gap: 5px; }
  .fl-contact-form input[type="text"], .fl-contact-form input[type="email"], .fl-contact-form textarea { padding: 9px 12px; }
  .fl-contact-form input[type="text"], .fl-contact-form input[type="email"] { min-height: 40px; }
  .fl-contact-form textarea { min-height: 96px; height: 96px; }
  .fl-contact-consent { padding: 8px 10px; font-size: 10px; line-height: 1.4; }
  .fl-contact-submit { min-height: 44px; }
  .fl-contact-hint { margin-top: -3px; font-size: 9px; }
}
@media (min-width: 621px) and (max-height: 760px) {
  .fl-contact-dialog { overflow: auto; }
  .fl-contact-head { padding: 15px 26px 12px; }
  .fl-contact-head h2 { font-size: 30px; }
  .fl-contact-form { gap: 8px; padding: 12px 26px 14px !important; }
  .fl-contact-direct > p { display: none; }
  .fl-contact-direct-card { padding: 7px 10px; }
  .fl-contact-form textarea { min-height: 76px; height: 76px; }
  .fl-contact-consent { padding: 6px 9px; }
  .fl-contact-submit { min-height: 40px; }
}

