/* Beschriftung rutscht nach oben (pq-ui.js). Farben und Feldgestaltung erbt das jeweilige Formular. */
.pq-fl { position: relative; }
.pq-fl > .pq-fl-l {
  position: absolute; left: 0; top: 0; z-index: 1; margin: 0; pointer-events: none;
  max-width: var(--fl-w, 80%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; transform: translate(var(--fl-x, 16px), var(--fl-y, 16px));
  opacity: 0;
}
.pq-fl.pq-fl--ready > .pq-fl-l { opacity: 1; transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1), opacity 150ms ease, color 150ms ease; }
label.pq-fl.pq-fl > input { padding-top: 22px; padding-bottom: 6px; }
label.pq-fl.pq-fl > textarea { padding-top: 28px; }
.pq-fl:has(> input:focus, > input:not(:placeholder-shown), > textarea:focus, > textarea:not(:placeholder-shown)) > .pq-fl-l {
  transform: translate(var(--fl-x, 16px), calc(var(--fl-y, 16px) + var(--fl-up, -10px))) scale(.75);
  max-width: calc(var(--fl-w, 80%) / .75);
}
/* Vom Browser automatisch ausgefüllt (eigene Regeln, damit ein unbekannter Selektor nicht alles kippt) */
.pq-fl:has(> input:-webkit-autofill) > .pq-fl-l {
  transform: translate(var(--fl-x, 16px), calc(var(--fl-y, 16px) + var(--fl-up, -10px))) scale(.75);
  max-width: calc(var(--fl-w, 80%) / .75);
}
.pq-fl:has(> input:autofill) > .pq-fl-l {
  transform: translate(var(--fl-x, 16px), calc(var(--fl-y, 16px) + var(--fl-up, -10px))) scale(.75);
  max-width: calc(var(--fl-w, 80%) / .75);
}
@media (prefers-reduced-motion: reduce) { .pq-fl.pq-fl--ready > .pq-fl-l { transition: opacity 150ms ease; } }

/* Konfetti (pq-ui.js) */
.pq-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147483000; }
/* Im Feld wirkt die Beschriftung wie ein Hinweis: leichter, gedämpft; oben wieder in Textfarbe */
.pq-field.pq-fl > .pq-fl-l { font-weight: 500; color: var(--pq-muted, #6b6f7b); }
.pq-field.pq-fl:has(> input:focus, > input:not(:placeholder-shown), > textarea:focus, > textarea:not(:placeholder-shown)) > .pq-fl-l { color: var(--pq-text, #1f1e1f); font-weight: 600; }

/* ---------- Zustimmung: deutlich sichtbares Kästchen zum Anhaken (AGB, Verträge, Datenschutz, Einwilligungen) ----------
   Ganze Zeile antippbar, Kästchen füllt sich mit Haken, Zeile wird hervorgehoben. Fehlt der Haken beim Absenden,
   wackelt die Zeile und ein Hinweis erscheint (pq-ui.js), statt dass nichts passiert. */
.pq-consent { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 10px 0; border: 1.5px solid rgba(17, 27, 44, .14); border-radius: 14px;
  background: #fff; color: inherit; font-size: 15px; font-weight: 500; line-height: 1.45; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.pq-consent:hover { border-color: rgba(17, 27, 44, .3); }
.pq-consent input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: static; opacity: 1; inset: auto; flex: none; width: 26px; height: 26px; margin: -1px 0 0;
  border: 2px solid #7d879a; border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 100ms ease; }
.pq-consent input[type="checkbox"]::after { content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform 180ms cubic-bezier(.3, 1.5, .6, 1); }
.pq-consent input[type="checkbox"]:checked { background: var(--pq-navy, #1f2d4a); border-color: var(--pq-navy, #1f2d4a); }
.pq-consent input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.pq-consent input[type="checkbox"]:focus-visible { outline: 3px solid rgba(70, 113, 159, .45); outline-offset: 2px; }
.pq-consent:active input[type="checkbox"] { transform: scale(.92); }
.pq-consent:has(input:checked) { border-color: var(--pq-navy, #1f2d4a); background: #f1f5fa; }
.pq-consent > span { flex: 1; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; display: block; }
.pq-consent > span::after { content: none !important; }
.pq-consent a { color: var(--pq-blue, #46719f); font-weight: 600; }
.pq-consent.is-missing { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); animation: pq-consent-shake 320ms ease; }
.pq-consent-hint { margin: 2px 0 0 4px; color: #c0392b; font-size: 14px; font-weight: 600; }
/* auf dunklem Grund (Kontaktformular der Website) */
.pq-consent--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .88); }
.pq-consent--dark:hover { border-color: rgba(255, 255, 255, .4); }
.pq-consent--dark input[type="checkbox"] { background: transparent; border-color: rgba(255, 255, 255, .7); }
.pq-consent--dark input[type="checkbox"]:checked { background: #fff; border-color: #fff; }
.pq-consent--dark input[type="checkbox"]::after { border-color: #1f2d4a; }
.pq-consent--dark:has(input:checked) { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pq-consent--dark a { color: #fff; }
.pq-consent--dark + .pq-consent-hint, .pq-consent--dark ~ .pq-consent-hint { color: #ffb4a8; }
@keyframes pq-consent-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .pq-consent, .pq-consent input, .pq-consent input::after { transition: none; } .pq-consent.is-missing { animation: none; } }
