/* StickTo Android App Banner (Bottom-Sheet)
 *
 * Wird per js/app-banner.js nur auf Android-Mobile sichtbar gemacht.
 * iOS bekommt den nativen Smart App Banner via <meta name="apple-itunes-app">.
 *
 * Default: hidden (kein display) + [hidden]-Attribut.
 * JS entfernt das hidden-Attribut bei passendem User-Agent → display:flex greift.
 * Auf Desktop greift die Media Query und blendet alles aus.
 */

.app-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1f2730;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  z-index: 1100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.app-banner[hidden] {
  display: none !important;
}

/* Nur auf Mobile zeigen, wenn JS das hidden-Attribut entfernt hat */
@media (max-width: 767px) {
  .app-banner:not([hidden]) {
    display: flex;
  }
}

.app-banner-close {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  opacity: 0.7;
  flex-shrink: 0;
  order: 99; /* immer ganz rechts */
}

.app-banner-close:hover,
.app-banner-close:focus {
  opacity: 1;
}

.app-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.app-banner-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.app-banner-title {
  font-weight: 600;
  font-size: 14px;
}

.app-banner-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

.app-banner-cta {
  background: #99cc33;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-banner-cta:hover,
.app-banner-cta:focus {
  background: #7a9c30;
  color: #ffffff;
  text-decoration: none;
}
