/* Anfrage-Pop-up (Startpilot-Standard, Emanuel 15.10.2026, Vorbild nevereverrust.de): Kontaktformular als Fenster.
   Am Handy (bis 640 px) Vollbild, sonst Karte (max. 560 px). Farben je Kunde in :root (Formularfarben der Seite). */
:root {
  /* Renner: Variablen der Seite (folgt Hell/Dunkel), Akzent Renner-Blau (--primary), Rundung wie die Formular-Karte */
  --ap-grund: hsl(var(--card));
  --ap-text: hsl(var(--foreground));
  --ap-gedimmt: hsl(var(--muted-foreground));
  --ap-linie: hsl(var(--border));
  --ap-akzent: hsl(var(--primary));
  --ap-schleier: rgba(0, 0, 0, .72);
  --ap-rund: 24px;
  --ap-titel-schrift: inherit;
  --ap-titel-gross: none;
}
.ap { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ap-text); width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); overflow: visible; }
.ap:not([open]) { display: none; }
.ap::backdrop { background: var(--ap-schleier); }
.ap-karte { box-sizing: border-box; background: var(--ap-grund); color: var(--ap-text); border: 1px solid var(--ap-linie); border-radius: var(--ap-rund); padding: 22px 22px 26px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); text-align: left; }
.ap-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ap-braue { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-akzent); font-weight: 700; margin: 0 0 4px; }
.ap-titel { font-size: 1.5rem; line-height: 1.2; font-weight: 800; margin: 0; color: var(--ap-text); font-family: var(--ap-titel-schrift); text-transform: var(--ap-titel-gross); }
.ap-zu { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--ap-linie); background: transparent; color: var(--ap-text); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0; }
.ap-zu:hover, .ap-zu:focus-visible { border-color: var(--ap-akzent); color: var(--ap-akzent); outline: none; }
.ap-text { margin: 8px 0 18px; color: var(--ap-gedimmt); font-size: .95rem; line-height: 1.5; }
.ap-form form { margin: 0; }
html.ap-offen, html.ap-offen body { overflow: hidden; }
html.ap-offen .kl { display: none !important; }
@media (max-width: 640px) {
  .ap { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; }
  .ap-karte { border-radius: 0; border-width: 0; height: 100dvh; max-height: 100dvh; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
}
