/* 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 {
  /* Renner: Leiste folgt Hell/Dunkel der Seite (Variablen der Seite), Anruf-Knopf Renner-Blau hsl(217 90% 40%) */
  --kl-grund: hsl(var(--background) / .97);
  --kl-linie: hsl(var(--border));
  --kl-knopf: hsl(var(--secondary));
  --kl-text: hsl(var(--secondary-foreground));
  --kl-haupt: hsl(217 90% 40%);
  --kl-haupt-text: #ffffff;
}
.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; } } */
/* renner-autolack.de: schwebende Knöpfe nur am Handy ausblenden (am Rechner unverändert) */
@media (max-width: 767.98px) { .fixed.bottom-\[14px\].right-\[14px\] { 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ß und Cookie-Hinweis nicht im Bild; nie auf Termin- und Kontaktseite).
   Unter 768 px ist .kl-termin immer aus (dort gibt es den Termin-Knopf in der Leiste). */
.kl-termin { display: none; }
@media (min-width: 768px) {
  .fixed.bottom-\[14px\].right-\[14px\] { display: none !important; }
  .kl-termin { position: fixed; right: 24px; bottom: 24px; z-index: 99950; 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; border: 1px solid rgba(0, 0, 0, .12); font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none !important; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .kl-termin.kl-termin--an { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s ease, transform .25s ease, visibility 0s; }
  .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 var(--kl-haupt); outline-offset: 3px; }
  html.ap-offen .kl-termin { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .kl-termin { transition: none !important; } }
