/* PWA install — Optionen (3 Spalten) + Modal */
#page-settings .settings-container {
  max-width: 980px;
}

.pwa-settings-panel .settings-card-desc {
  margin-bottom: 16px;
}

.pwa-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.pwa-platform-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  min-height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pwa-platform-card--active {
  border-color: rgba(0, 240, 200, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 240, 200, 0.12), 0 8px 28px rgba(0, 240, 200, 0.08);
  background: rgba(0, 240, 200, 0.04);
}

.pwa-platform-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pwa-platform-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-platform-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.pwa-platform-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
}

.pwa-platform-steps {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text2);
  flex: 1;
}

.pwa-platform-steps ol {
  margin: 0;
  padding-left: 18px;
}

.pwa-platform-steps li {
  margin-bottom: 6px;
}

.pwa-platform-steps li:last-child {
  margin-bottom: 0;
}

.pwa-platform-steps strong {
  color: var(--text);
  font-weight: 600;
}

.pwa-platform-install-btn {
  width: 100%;
  margin-top: auto;
}

.pwa-settings-hint {
  margin: 0;
  font-size: 11px;
}

.pwa-install-modal-body ol {
  margin: 8px 0 12px 18px;
  padding: 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.pwa-install-modal-body p {
  margin: 0 0 10px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.pwa-install-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.pwa-install-modal-grid .pwa-platform-card {
  padding: 12px;
}

@media (max-width: 900px) {
  .pwa-platform-grid,
  .pwa-install-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Offline-Hinweis (Toast-Pill unten links, dezent, kollidiert nicht mit Topbar/Nav) */
.offline-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 8999;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  max-width: min(380px, calc(100vw - 32px));
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.97), rgba(217, 119, 6, 0.97));
  color: #1a1205;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.offline-banner[hidden] { display: none; }
.offline-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1205;
  flex-shrink: 0;
  animation: offlinePulse 1.6s ease-in-out infinite;
}
@keyframes offlinePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (max-width: 600px) {
  .offline-banner {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

/* Update verfügbar (unten) */
.app-update-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(0, 240, 200, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font-size: 13px;
  max-width: calc(100vw - 32px);
}
.app-update-banner[hidden] { display: none; }
.app-update-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent, #00f0c8);
  color: #04201b;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.app-update-btn:hover { filter: brightness(1.08); }
