/* 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 in :root. */
:root {
  /* Knoche & Vendt: Karte hsl(0 0% 8%), Rand hsl(0 0% 15%), Markenrot hsl(0 84% 47%); Akzent-Text etwas heller (#f04545, 5,0:1 auf der Karte) */
  --ap-grund: #141414; --ap-linie: #262626; --ap-text: #ffffff; --ap-titel: #ffffff; --ap-leise: rgba(255, 255, 255, .72);
  --ap-akzent: #f04545; --ap-schleier: rgba(0, 0, 0, .78); --ap-rund: 1rem; --ap-schrift-titel: Outfit, sans-serif;
}
.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; font-family: inherit; }
.ap::backdrop { background: var(--ap-schleier); }
.ap-karte { background: var(--ap-grund); border: 1px solid var(--ap-linie); border-radius: var(--ap-rund); padding: 22px 20px 24px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); 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: 600; margin: 0 0 4px; line-height: 1.4; }
.ap h2.ap-titel { font-family: var(--ap-schrift-titel); font-size: 1.5rem; line-height: 1.2; font-weight: 700; margin: 0; color: var(--ap-titel); letter-spacing: normal; max-width: none; }
.ap-zu { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid var(--ap-linie); background: transparent; color: var(--ap-text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.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-leise); font-size: .95rem; line-height: 1.5; }
html.ap-offen { overflow: hidden; }
html.ap-offen #kl, html.ap-offen .kl-termin { 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)); }
}
/* Knoche & Vendt: Formular im Fenster ohne zusätzlichen Abstand oben */
.ap .ap-form > form { margin-top: 0; }
