/* Mobile Bottom Safe Area Fix v1.0
 * Android gibt env(safe-area-inset-bottom) = 0 zurück,
 * daher wird die Eingabeleiste von der Navigationsleiste überlappt.
 * Dieser Patch erhöht den minimalen Bottom-Padding auf allen Input-Bereichen.
 */

/* === Bubble Agent Home Input === */
.ba-input-wrap {
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
}

/* === Chat V3 Input === */
.cv3-in {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

/* === Kurs-Player Input === */
.gl-input-row {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

/* === Mobile: Extra Padding === */
@media (max-width: 768px) {
  .ba-input-wrap {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 28px)) !important;
  }

  .cv3-in {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .gl-input-row {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Fullscreen-Modus: Noch mehr Platz da kein Browser-Chrome */
  .ba-fullscreen .ba-input-wrap {
    padding-bottom: max(32px, env(safe-area-inset-bottom, 32px)) !important;
  }
}

/* === Kleine Geräte === */
@media (max-width: 380px) {
  .ba-input-wrap {
    padding-bottom: max(26px, env(safe-area-inset-bottom, 26px)) !important;
  }

  .cv3-in {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
