/* Burgermenü als Blattdialog von unten. */

.menu-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--text-soft);
  cursor: pointer; transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.menu-btn:active { transform: scale(.9); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-btn svg { width: 20px; height: 20px; }

.sheet-back {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 2, 5, 0); backdrop-filter: blur(0px);
  transition: background 260ms ease, backdrop-filter 260ms ease;
}
.sheet-back.is-open { background: rgba(3, 2, 5, .62); backdrop-filter: blur(3px); }

.sheet {
  width: 100%; max-width: 34rem; max-height: 88dvh;
  background: #100E16; border: 1px solid var(--glass-line); border-bottom: 0;
  border-radius: var(--r3) var(--r3) 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-back.is-open .sheet { transform: translateY(0); }

.sheet-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s3) var(--s2); flex: none;
  border-bottom: 1px solid var(--glass-line);
}
.sheet-top b { font-size: 1.25rem; font-weight: 300; }
.sheet-close {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--text-soft);
  cursor: pointer; transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.sheet-close:active { transform: scale(.9); }
.sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sheet-close svg { width: 19px; height: 19px; }

.sheet-scroll { overflow-y: auto; padding: var(--s3) var(--s3) var(--s4); }

/* ---- Navigationsliste ---- */
.menu-list { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s3); }
.menu-row {
  display: flex; align-items: center; gap: var(--s2); width: 100%;
  padding: 13px 14px; border-radius: var(--r2);
  background: var(--glass); border: 1px solid var(--glass-line);
  font: inherit; color: var(--text); cursor: pointer; text-align: left;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), border-color 160ms ease;
}
.menu-row:active { transform: scale(.985); }
.menu-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-row.is-open { border-color: rgba(0, 229, 255, .45); }
.menu-row.is-soon { opacity: .55; }
.menu-ic {
  width: 36px; height: 36px; border-radius: var(--r1); flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: var(--text-soft);
}
.menu-ic svg { width: 19px; height: 19px; }
.menu-label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu-label b { font-size: 1.02rem; font-weight: 300; }
.menu-label span { font-family: var(--f-data); font-size: .66rem; color: var(--text-faint); }
.menu-row > svg { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.soon {
  font-family: var(--f-data); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); border: 1px solid var(--glass-line); border-radius: 999px; padding: 3px 8px; flex: none;
}

.menu-panel { margin-top: var(--s3); }

.sheet-conn {
  display: flex; align-items: center; gap: var(--s2);
  padding: 14px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--glass-line);
}
.sheet-conn .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--text-faint); }
.sheet-conn.is-ok .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 224, 160, .18); }
.sheet-conn.is-warn .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(240, 185, 78, .18); }
.sheet-conn.is-bad .dot { background: var(--crit); box-shadow: 0 0 0 4px rgba(255, 92, 122, .18); }
.sheet-conn b { display: block; font-size: .96rem; font-weight: 400; }
.sheet-conn span { font-family: var(--f-data); font-size: .68rem; color: var(--text-faint); }

.sheet-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: var(--s1); }
.sheet-counts div {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r1);
  padding: 12px 6px; text-align: center;
}
.sheet-counts b { display: block; font-size: 1.35rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.sheet-counts span { font-family: var(--f-data); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

.sheet-history { display: flex; flex-direction: column; gap: 6px; }
.ver { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r1); overflow: hidden; }
.ver summary {
  display: flex; align-items: baseline; gap: var(--s2); padding: 13px 14px; cursor: pointer;
  list-style: none;
}
.ver summary::-webkit-details-marker { display: none; }
.ver-no {
  font-family: var(--f-data); font-size: .72rem; font-weight: 700; flex: none;
  background: var(--brand-gradient-diag); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ver-title { flex: 1; font-size: .92rem; font-weight: 300; line-height: 1.3; }
.ver-date { font-family: var(--f-data); font-size: .62rem; color: var(--text-faint); flex: none; }
.ver ul { margin: 0; padding: 0 14px 14px 32px; }
.ver li { font-size: .86rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 6px; }
.ver li::marker { color: var(--brand-3); }

.sheet-foot {
  margin: var(--s4) 0 0; text-align: center;
  font-family: var(--f-data); font-size: .68rem; color: var(--text-faint); line-height: 1.7;
}
