:root{
  --topbar-h: 68px;

  --bg0:#0b1020;
  --bg1:#111a2e;

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.045);
  --cardBorder: rgba(255,255,255,.10);

  --text: rgba(235,238,255,.92);
  --muted: rgba(235,238,255,.70);

  --pill: rgba(124,92,255,.18);
  --pillBorder: rgba(124,92,255,.35);

  --btnGlow: 0 0 0.9rem rgba(160,120,255,.25), 0 0 1.6rem rgba(0,200,255,.10);

  --shadow-lg: 0 30px 90px rgba(0,0,0,.40);
  --shadow-md: 0 20px 60px rgba(0,0,0,.25);

  --radius-lg: 22px;
  --radius-md: 18px;
}

html, body { height: 100%; }

body{
  background:
    radial-gradient(1200px 600px at 50% 30%, rgba(124,92,255,.22), transparent 55%),
    radial-gradient(900px 450px at 60% 70%, rgba(0,200,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--text);
  overflow: hidden;   /* ✅ Background fix */
}

/* top nav mimic */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--topbar-h);
  display:flex;
  align-items:center;

  backdrop-filter: blur(10px);
  background: rgba(10,14,28,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar .container{
  width: 100%;
}
.brand{
  display:flex;
  align-items:center;
  gap: .75rem;
  padding: .85rem 0;
  text-decoration:none;
  color: var(--text);
}
.brand:hover{ color: var(--text); opacity: .95; }

.brand-logo{
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(180,120,255,.25));
}

/* main */
.page{
  position: relative;
  z-index: 1; /* ✅ über stars */

  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  /* Center für die Hero-Card, aber mit Scroll wenn mehr kommt */
  display:flex;
  align-items:flex-start; /* ✅ damit oben nicht “drückt” */
}

.page .container{
  width: 100%;
}

.card-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.logo-hero{
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 18px rgba(180,120,255,.28)) drop-shadow(0 0 30px rgba(0,200,255,.12));
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid var(--pillBorder);
  color: var(--text);
  font-size: .9rem;
}

.leadish{
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto;
}

.btn-primary, .btn-secondary{
  border-radius: 12px;
  padding: .65rem 1.05rem;
  box-shadow: var(--btnGlow);
}
.btn-secondary{
  box-shadow: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-secondary:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.small-muted{ color: rgba(235,238,255,.55); }

/* subtle stars */
.stars{
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity: .45;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,.25) 50%, transparent 51%);
  background-repeat: repeat;
  background-size: 500px 500px;
}

@media (max-width: 575.98px){
  .logo-hero{ width: 120px; height: 120px; }
  .hero-title-main{ font-size: 2.0rem; }
  .leadish{ font-size: 1rem; }
}

.toast {
  backdrop-filter: blur(12px);
  background: rgba(20, 25, 45, 0.85) !important;
  border: 1px solid rgba(180,120,255,.25);
  box-shadow: 0 0 18px rgba(180,120,255,.25);
}

.status-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  width: fit-content;
  margin-left:auto;
  margin-right:auto;
  backdrop-filter: blur(10px);
}

.status-btn{
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .75rem;
  opacity: .85;
}

.status-btn:hover{
  opacity: 1;
  background: rgba(255,255,255,.12);
}

.status-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 10px rgba(255,255,255,.15);
}

/* States */
.status-line[data-state="checking"] .status-dot{
  background: rgba(124,92,255,.75);
  box-shadow: 0 0 14px rgba(180,120,255,.35);
}
.status-line[data-state="maintenance"] .status-dot{
  background: rgba(124,92,255,.75);
  box-shadow: 0 0 14px rgba(180,120,255,.35);
}
.status-line[data-state="online"] .status-dot{
  background: rgba(80, 220, 150, .85);
  box-shadow: 0 0 14px rgba(80, 220, 150, .25);
}
.status-line[data-state="offline"] .status-dot{
  background: rgba(255, 90, 120, .85);
  box-shadow: 0 0 14px rgba(255, 90, 120, .25);
}

.working-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.working-card .header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.working-card .title {
  font-weight: 600;
  letter-spacing: .2px;
}

.working-card .meta {
  color: rgba(235,238,255,.65);
  font-size: .85rem;
}

.working-card .body {
  padding: 1rem;
}

.task-list {
  display:flex;
  flex-direction:column;
  gap: .65rem;
  margin-top: .75rem;
}

.task {
  display:flex;
  gap: .75rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.task .t-title { font-weight: 600; }
.task .t-desc  { color: rgba(235,238,255,.68); font-size:.9rem; margin-top:.15rem; }

.badge-soft {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-completed {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.icon-progress {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  animation: pulse 1.6s infinite ease-in-out;
}

.icon-failed {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.icon-pending {
  background: rgba(255,255,255,0.15);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(96,165,250,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(96,165,250,0); }
  100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); }
}

.progress {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  height: .55rem;
}
.progress-bar {
  border-radius: 999px;
}

.stack{
  display:flex;
  flex-direction: column;
  gap: 1.5rem; /* entspricht ziemlich mb-4/mb-5 vibe */
}

.planned-card .planned-msg{
  color: rgba(235,238,255,.78);
  margin-bottom: .8rem;
}

.planned-list{
  display:flex;
  flex-direction:column;
  gap: .6rem;
}

.planned-item{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.pi-title{ font-weight: 600; }
.pi-impact{ color: rgba(235,238,255,.68); font-size:.9rem; margin-top:.15rem; }

.pi-meta{
  display:flex;
  gap:.4rem;
  align-items:flex-start;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.pi-chip{
  font-size: .78rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.22);
  color: rgba(235,238,255,.88);
  white-space: nowrap;
}