/* Handy- und Tablet-Ansicht: Menü wird zur ausklappbaren Leiste */
#navToggle, #navScrim { display: none; }
@media (max-width: 899px) {
  html, body { overscroll-behavior: none; }
  #navToggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-right: .7rem; border: 0; border-radius: .7rem; background: #433733; color: #F0E4DA; font-size: 1.3rem; flex: none; }
  header { padding: .6rem .8rem !important; }
  header h1 { font-size: 1rem !important; }
  header p, #dateLabel { display: none !important; }
  header > div { min-width: 0; }
  header > div:last-child > :not(#syncChip):not(#navToggle) { display: none !important; }
  html, body { max-width: 100vw; overflow-x: hidden; }
  #syncChip { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
  header svg.w-10 { width: 2rem !important; height: 2rem !important; }
  aside { position: fixed !important; top: 0; bottom: 0; left: 0; z-index: 70; width: 17rem !important; max-width: 85vw; overflow-y: auto; transform: translateX(-102%); transition: transform .2s ease; box-shadow: none; }
  body.nav-open aside { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  #navScrim { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.5); }
  body.nav-open #navScrim { display: block; }
  main { padding: .75rem !important; }
  .modal { padding: 1rem !important; max-height: 96vh !important; border-radius: 1rem !important; }
  .overlay { padding: .4rem !important; }
  .cbtn { padding: .9rem 1.2rem; font-size: 1.15rem; }
  #syncChip { white-space: nowrap; }
}
