/* Anfrage-Pop-up (Startpilot-Standard, Emanuel 15.10.2026, Vorbild nevereverrust.de): Kontaktformular als Fenster.
   Am Handy Vollbild, am Rechner Karte (max. 560 px). Farben je Kunde unten in :root (Formularfarben der Seite). */
:root {
  --ap-grund: hsl(0 0% 7%);          /* Fensterhintergrund */
  --ap-text: hsl(0 0% 100%);
  --ap-gedimmt: hsl(0 0% 65%);
  --ap-linie: hsl(0 0% 18%);
  --ap-akzent: hsl(200 100% 50%);      /* Markenfarbe (Überzeile, Fokus) */
  --ap-schleier: rgba(0, 0, 0, .78);
}
.ap { padding: 0; border: 0; background: transparent; color: var(--ap-text); width: calc(100% - 24px); max-width: 560px; max-height: calc(100dvh - 24px); 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: 18px; padding: 22px 20px 24px; max-height: calc(100dvh - 24px); 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); }
.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 { 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)); }
}
