/* GPTGenie · Verbindungs-Anzeige (js/offline.js), unten links in der Ecke
   · Offline / wird gespeichert / gespeichert: nur ein kleines rundes Glas-Symbol (passiv).
     Offline antippen zeigt kurz die Erklärung, eine Zahl daneben = wartende Änderungen.
   · Neue Version / Anmelden nötig / Fehler: klappt zu einer Pille mit Text und Knopf auf. */
.gg-net {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(calc(100vw - 32px), 400px);
  min-height: 38px;
  padding: 8px 14px 8px 11px;
  box-sizing: border-box;
  border-radius: 999px;
  font: 600 13px/1.35 "Plus Jakarta Sans", system-ui, sans-serif;
  text-align: left;
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.02) 100%),
    rgba(24,16,44,0.86);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.32);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 10px 26px -10px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform-origin: 19px calc(100% - 19px);
  scale: .85;
  translate: 0 8px;
  transition: opacity .22s ease, scale .4s cubic-bezier(.25,.9,.3,1.1), translate .4s cubic-bezier(.25,.9,.3,1.1), visibility 0s linear .22s;
  pointer-events: none;
  cursor: default;
}
.gg-net.show {
  opacity: 1;
  visibility: visible;
  scale: 1;
  translate: 0 0;
  pointer-events: auto;
  transition: opacity .22s ease, scale .4s cubic-bezier(.25,.9,.3,1.1), translate .4s cubic-bezier(.25,.9,.3,1.1), visibility 0s;
}
/* nur Symbol: kleiner runder Knopf */
.gg-net.is-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  gap: 0;
  opacity: .78;
}
.gg-net.is-icon.show:hover { opacity: 1; }
.gg-net > svg, .gg-net-spin svg { flex: none; display: block; }
.gg-net span { min-width: 0; }
.gg-net b { font-weight: 700; }
.gg-net small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: rgba(245,245,247,0.7); }
.gg-net.has-sub { border-radius: 20px; align-items: flex-start; padding: 11px 16px 11px 12px; }
.gg-net.has-sub > svg { margin-top: 1px; }
.gg-net.is-off { cursor: pointer; }
.gg-net.is-off > svg { color: #fbbf24; }
.gg-net.is-ok > svg { color: #4ade80; }
.gg-net.is-warn > svg { color: #fbbf24; }
.gg-net.is-update > svg { color: #c084fc; }
/* wartende Änderungen als kleine Zahl am Symbol */
.gg-net-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  font: 700 10.5px/18px "Plus Jakarta Sans", system-ui, sans-serif;
  font-style: normal;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #b86bff, #9333ea);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 1.5px rgba(24,16,44,0.9);
}
.gg-net.has-sub .gg-net-count { display: none; }
/* Text nur für Screenreader (Symbol-Zustände) */
.gg-net-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gg-net-spin { display: grid; place-items: center; color: #c084fc; animation: ggNetSpin 1s linear infinite; }
@keyframes ggNetSpin { to { rotate: 360deg; } }
.gg-net button {
  flex: none;
  margin-left: 2px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 700 12.5px/1.2 inherit;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%), linear-gradient(135deg, #a855f7 0%, #c026d3 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 6px 14px -6px rgba(192,38,211,0.8);
  transition: transform .2s ease;
}
.gg-net button:active { transform: scale(.95); }
@media (max-width: 600px) {
  .gg-net { left: calc(12px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-net, .gg-net.show { transition: opacity .2s ease; scale: 1; translate: 0 0; }
  .gg-net-spin { animation: none; }
}
