/* Kontaktleiste am Handy (Startpilot-Standard 15.10.2026): Anrufen · WhatsApp · Anfrage, nur unter 768 px.
   Ersetzt dort die schwebenden Knöpfe (die bleiben am Rechner unverändert). Farben je Kunde unten in :root. */
:root {
  --kl-grund: rgba(11, 16, 48, .97);   /* Leistenhintergrund (Startpilot-Nachtblau --ink) */
  --kl-linie: rgba(255, 255, 255, .14);
  --kl-knopf: #1a2254;                 /* Knopf WhatsApp/Anfrage (--ink-3) */
  --kl-text: #f6f8fc;
  --kl-haupt: #1ea7ea;                 /* Anruf-Knopf (Markenfarbe Himmelblau --sand) */
  --kl-haupt-text: #0b1030;
}
.kl { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .kl:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; gap: .45rem; padding: .55rem .55rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--kl-grund); border-top: 1px solid var(--kl-linie); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); font-family: inherit; }
  .kl__k { flex: 1 1 0; min-width: 0; min-height: 3rem; display: flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .75rem; border: 1px solid var(--kl-linie); background: var(--kl-knopf); color: var(--kl-text) !important; font-weight: 600; font-size: .9375rem; line-height: 1; text-decoration: none !important; white-space: nowrap; }
  .kl__k svg { flex: none; width: 1.15rem; height: 1.15rem; }
  .kl__k--anruf { flex: 1.5 1 0; background: var(--kl-haupt); border-color: var(--kl-haupt); color: var(--kl-haupt-text) !important; }
  .kl__k--wa svg { color: #25d366; width: 1.3rem; height: 1.3rem; }
  .kl__k:focus-visible { outline: 2px solid var(--kl-haupt); outline-offset: 2px; }
}
@media (max-width: 24.4rem) { .kl__k { font-size: .875rem; gap: .3rem; } }
/* Startpilot: schwebender WhatsApp-Knopf nur am Handy aus (am Rechner unverändert) */
@media (max-width: 767.98px) { a.wa-float { display: none !important; } }
/* Vier Knöpfe, wenn der Kunde eine Terminbuchung hat: Anrufen · WhatsApp · Termin · Anfrage (Emanuel 15.10.2026) */
@media (max-width: 767.98px) {
  .kl:has(.kl__k--termin) { gap: .35rem; padding-left: .4rem; padding-right: .4rem; }
  .kl:has(.kl__k--termin) .kl__k { flex: 1 1 0; flex-direction: column; gap: .2rem; min-height: 3.25rem; font-size: .75rem; padding: 0 .1rem; }
  .kl:has(.kl__k--termin) .kl__k svg { width: 1.2rem; height: 1.2rem; }
}
/* Startpilot am Rechner (Emanuel 15.10.2026): statt des schwebenden WhatsApp-Knopfs nur »Termin buchen« (→ /termin).
   Sichtbar nur, wenn anfrage-popup.js kl-termin--an setzt (Seitenkopf vorbei, Fuß nicht im Bild); auf /termin und /kontakt gibt es den Knopf nicht. */
.kl-termin { display: none; }
@media (min-width: 768px) {
  a.wa-float { display: none !important; }
  .kl-termin.kl-termin--an { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 999px; background: var(--kl-haupt); color: var(--kl-haupt-text) !important; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none !important; box-shadow: 0 18px 40px -14px rgba(11, 16, 48, .55), 0 4px 12px rgba(11, 16, 48, .18); animation: kl-termin-ein .35s ease-out; }
  .kl-termin svg { width: 1.2rem; height: 1.2rem; flex: none; }
  .kl-termin:hover { filter: brightness(1.06); }
  .kl-termin:focus-visible { outline: 2px solid var(--kl-haupt-text); outline-offset: 3px; }
  body.consent-offen .kl-termin { display: none !important; }
}
@keyframes kl-termin-ein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kl-termin.kl-termin--an { animation: none; } }
