/* ═══════════════════════════════════════════════════════════════════
   PWA Install-Banner · nur auf /saisonkalender aktiv
   ═══════════════════════════════════════════════════════════════════ */

#pwa-banner {
  position: fixed;
  z-index: 9998;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(122, 12, 30, 0.18), 0 4px 12px rgba(122, 12, 30, 0.08);
  padding: 18px 18px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #7a0c1e;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

#pwa-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#pwa-banner[hidden] { display: none !important; }

.pwa-banner-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pwa-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #c8102e, #ffffff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.pwa-banner-content {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #7a0c1e;
  line-height: 1.3;
  margin: 0 0 4px;
}

.pwa-banner-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px;
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pwa-btn {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.pwa-btn-primary {
  background: #c8102e;
  color: #fff;
}

.pwa-btn-primary:hover { background: #7a0c1e; }
.pwa-btn-primary:active { transform: scale(0.97); }

.pwa-btn-ghost {
  background: transparent;
  color: #64748b;
}

.pwa-btn-ghost:hover { color: #7a0c1e; background: #f1f5f9; }

.pwa-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-banner-close:hover { color: #7a0c1e; background: #f1f5f9; }

/* iOS-Anleitung */
#pwa-banner.ios .pwa-ios-steps {
  margin-top: 6px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
}

#pwa-banner.ios .pwa-ios-steps ol {
  margin: 6px 0 0 0;
  padding-left: 20px;
}

#pwa-banner.ios .pwa-ios-steps li {
  margin-bottom: 2px;
}

#pwa-banner.ios .pwa-ios-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin: 0 2px;
}

/* Mobile-spezifisch */
@media (max-width: 480px) {
  #pwa-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px 16px 14px;
  }
  .pwa-banner-icon { width: 38px; height: 38px; font-size: 19px; }
  .pwa-banner-title { font-size: 14px; }
  .pwa-banner-text { font-size: 12.5px; }
}

/* Dark Mode wenn vom System gesetzt */
@media (prefers-color-scheme: dark) {
  #pwa-banner {
    background: #1a2940;
    border-color: #5e0a17;
    color: #f1f5f9;
  }
  .pwa-banner-title { color: #ffffff; }
  .pwa-banner-text { color: #cbd5e1; }
  .pwa-btn-ghost:hover { background: #5e0a17; color: #ffffff; }
  #pwa-banner.ios .pwa-ios-steps { color: #cbd5e1; }
}
