/* 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(0, 0, 0, .97);   /* Leistenhintergrund */
  --kl-linie: rgba(255, 255, 255, .15);
  --kl-knopf: #121212;                 /* Knopf WhatsApp/Anfrage */
  --kl-text: #f2f2f2;
  --kl-haupt: #00aaff;                 /* Anruf-Knopf (Markenfarbe) */
  --kl-haupt-text: #000;
}
.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; } }
/* KUNDE: schwebende Knöpfe am Handy ausblenden (Selektor je Seite), z. B.
@media (max-width: 767.98px) { .SELEKTOR { display: none !important; } } */
/* autowoscha.at: schwebende Knöpfe am Handy ausblenden (am Rechner unverändert) */
@media (max-width: 767.98px) { [data-fab] { display: none !important; } }
/* offenes Handy-Menü: Leiste nicht darüberlegen */
@media (max-width: 767.98px) { body:has(#mobile-menu:not([hidden])) .kl { 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; }
}
/* Rechner (ab 768 px): nur noch EIN schwebender Knopf »Termin buchen« statt der bisherigen schwebenden Knöpfe (Emanuel 15.10.2026).
   Sichtbarkeit setzt anfrage-popup.js (Klasse kl-termin--an: Hero vorbei, Fuß nicht im Bild); unter 768 px gibt es den Termin-Knopf in der Leiste. */
.kl-termin { display: none; }
@media (min-width: 768px) {
  [data-fab] { display: none !important; }
  .kl-termin.kl-termin--an { position: fixed; right: 24px; bottom: 24px; z-index: 999998; display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.4rem; border-radius: 999px; background: var(--kl-haupt); color: var(--kl-haupt-text) !important; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
  .kl-termin svg { flex: none; width: 1.2rem; height: 1.2rem; }
  .kl-termin:hover { filter: brightness(1.08); }
  .kl-termin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  html.ap-offen .kl-termin { display: none !important; }
}
