/* sc-kp-leiste.css — Aktionsleiste im Kundenportal (Betreiber 21.10.2026), gehoert zu sc-kp-leiste.js.
   Ebenen im Portal: Vollbild-Schicht 45, Leiste 47, Selina 48, Tailwind-Modals ab 50.
   Handy bis 768 px: fest unten ueber die volle Breite. Desktop: schwebend unten mittig.
   Angeheftet (Fusszeile im Vollbild-Fenster): sticky am unteren Rand des scrollenden Fensters. */

.sc-kp-leiste {
  --kp-grund: rgba(20, 20, 25, 0.97);
  --kp-rand: #34343e;
  --kp-text: #e5e5e9;
  --kp-leise: #9b9ba6;
  --kp-blau: #4cb3d6;
  --kp-blau-schrift: #06232e;
  --kp-gruen: #48bf91;
  --kp-gruen-schrift: #062a1d;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 47;
  box-sizing: border-box;
  background: var(--kp-grund);
  border-top: 1px solid var(--kp-rand);
  color: var(--kp-text);
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: sc-kp-leiste-rein 0.18s ease-out;
}
.sc-kp-leiste[hidden] { display: none !important; }
.sc-kp-leiste *, .sc-kp-leiste *::before, .sc-kp-leiste *::after { box-sizing: border-box; }

.sc-kp-leiste__kontext {
  font-size: 12px;
  line-height: 1.35;
  color: var(--kp-leise);
  margin: 0 2px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-kp-leiste__knoepfe { display: flex; gap: 8px; }

.sc-kp-leiste__knopf {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  min-width: 0;
  margin: 0;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--kp-rand);
  background: transparent;
  color: var(--kp-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}
.sc-kp-leiste__knopf--primaer {
  flex: 1 1 auto;
  background: var(--kp-blau);
  border-color: var(--kp-blau);
  color: var(--kp-blau-schrift);
}
.sc-kp-leiste__knopf--primaer.sc-kp-leiste__knopf--gruen {
  background: var(--kp-gruen);
  border-color: var(--kp-gruen);
  color: var(--kp-gruen-schrift);
}
.sc-kp-leiste__knopf--sekundaer { flex: 0 0 auto; max-width: 46%; }
/* Symbol-Knopf links (z. B. Stift „Anfrage bearbeiten“, 21.10.2026): quadratisch, Symbol immer sichtbar */
.sc-kp-leiste__knopf--werkzeug { flex: 0 0 46px; width: 46px; padding: 0; border-color: var(--kp-blau); color: var(--kp-blau); }
.sc-kp-leiste__knopf--werkzeug .sc-kp-leiste__ic { display: block; width: 19px; height: 19px; }
.sc-kp-leiste__knopf:active { transform: scale(0.98); }
.sc-kp-leiste__knopf:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.sc-kp-leiste__text { min-width: 0; }

.sc-kp-leiste__ic {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Schmale Handys: Text vor Symbol, sonst bricht „Team bewerten“ um */
@media (max-width: 400px) {
  .sc-kp-leiste__knopf { font-size: 13px; padding: 6px 10px; }
  .sc-kp-leiste__ic { display: none; }
}

/* Desktop: schwebend unten mittig */
@media (min-width: 769px) {
  .sc-kp-leiste {
    left: 50%;
    right: auto;
    bottom: 20px;
    width: min(560px, calc(100vw - 40px));
    transform: translateX(-50%);
    border: 1px solid var(--kp-rand);
    border-radius: 16px;
    padding: 10px 12px 12px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  .sc-kp-leiste__knopf:hover { filter: brightness(1.08); }
  .sc-kp-leiste__knopf--sekundaer:hover { border-color: var(--kp-blau); filter: none; }
}

/* Angeheftet: Fusszeile im Vollbild-Fenster der Schicht */
.sc-kp-leiste.is-angeheftet {
  position: sticky;
  bottom: 0;
  left: auto;
  right: auto;
  width: auto;
  transform: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
@media (min-width: 769px) {
  .sc-kp-leiste.is-angeheftet { padding: 12px 18px; }
  .sc-kp-leiste.is-angeheftet .sc-kp-leiste__innen { display: flex; align-items: center; gap: 14px; }
  .sc-kp-leiste.is-angeheftet .sc-kp-leiste__kontext { flex: 1 1 auto; margin: 0; font-size: 13px; }
  .sc-kp-leiste.is-angeheftet .sc-kp-leiste__knoepfe { flex: none; }
  .sc-kp-leiste.is-angeheftet .sc-kp-leiste__knopf { flex: none; max-width: none; padding: 6px 18px; min-height: 42px; }
}

@keyframes sc-kp-leiste-rein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .sc-kp-leiste { animation: none; }
  .sc-kp-leiste__knopf { transition: none; }
  .sc-kp-leiste__knopf:active { transform: none; }
}

/* Symbol-Knopf: kein Innenabstand, auch wenn schmale Handys oder das angeheftete Fenster
   den Knoepfen Polster geben (die Regeln oben stehen spaeter bzw. gleich stark). */
.sc-kp-leiste .sc-kp-leiste__knoepfe .sc-kp-leiste__knopf--werkzeug { padding: 0; flex: 0 0 46px; width: 46px; }
